iOS/libraries/allegro/allegro/src/psp/pgfx.c
/* gfx_psp_enable_acceleration:
 *  Installs and activates some routines to accelerate Allegro.
 */
Installs and activates some routines to accelerate Allegro.
Installs and activates some routines to accelerate Allegro .
static void gfx_psp_enable_acceleration(GFX_VTABLE *vtable)
{
   _orig_blit = vtable->blit_to_self;
   vtable->blit_from_memory = psp_hw_blit;
   vtable->blit_to_memory = psp_hw_blit;
   vtable->blit_from_system = psp_hw_blit;
   vtable->blit_to_system = psp_hw_blit;
   vtable->blit_to_self = psp_hw_blit;
   _screen_vtable.blit_from_memory = psp_hw_blit;
   _screen_vtable.blit_to_memory = psp_hw_blit;
   _screen_vtable.blit_from_system = psp_hw_blit;
   _screen_vtable.blit_to_system = psp_hw_blit;
   _screen_vtable.blit_to_self = psp_hw_blit;
   system_driver->create_bitmap = psp_create_bitmap;
   system_driver->destroy_bitmap = psp_destroy_bitmap;
   gfx_capabilities |= (GFX_HW_VRAM_BLIT | GFX_HW_MEM_BLIT);
}
static void gfx_psp_enable_acceleration ( GFX_VTABLE * vtable ) { _orig_blit = vtable -> blit_to_self ; vtable -> blit_from_memory = psp_hw_blit ; vtable -> blit_to_memory = psp_hw_blit ; vtable -> blit_from_system = psp_hw_blit ; vtable -> blit_to_system = psp_hw_blit ; vtable -> blit_to_self = psp_hw_blit ; _screen_vtable . blit_from_memory = psp_hw_blit ; _screen_vtable . blit_to_memory = psp_hw_blit ; _screen_vtable . blit_from_system = psp_hw_blit ; _screen_vtable . blit_to_system = psp_hw_blit ; _screen_vtable . blit_to_self = psp_hw_blit ; system_driver -> create_bitmap = psp_create_bitmap ; system_driver -> destroy_bitmap = psp_destroy_bitmap ; gfx_capabilities |= ( GFX_HW_VRAM_BLIT | GFX_HW_MEM_BLIT ) ; }
gfx_psp_enable_acceleration:
  Installs and activates some routines to accelerate Allegro.
gfx_psp_enable_acceleration : Installs and activates some routines to accelerate Allegro .
/* Keep the original blitting methods */ /* Accelerated blits. */ /* Supporting routines. */