iOS/libraries/allegro/allegro/src/psp/pgfx.c
/* psp_show_video_bitmap:
 *  Page flipping function: swaps to display the specified video memory 
 *  bitmap object (this must be the same size as the physical screen).
 */
Page flipping function: swaps to display the specified video memory
bitmap object (this must be the same size as the physical screen).
Page flipping function : swaps to display the specified video memory bitmap object ( this must be the same size as the physical screen ) .
int psp_show_video_bitmap(BITMAP *bitmap)
{
   if (_wait_for_vsync)
      sceDisplayWaitVblankStart();
   if (gu_psm_format == GU_PSM_T8) {
      displayed_video_bitmap = bitmap;
      texture_start = bitmap->line[0];
      psp_draw_to_screen();
   }
   else {
      if (is_sub_bitmap(bitmap))
         return -1;
      sceDisplaySetFrameBuf((void *)BMP_EXTRA(bitmap)->hw_addr, BMP_EXTRA(bitmap)->pitch, gu_psm_format, PSP_DISPLAY_SETBUF_IMMEDIATE);
   }
   return 0;
}
int psp_show_video_bitmap ( BITMAP * bitmap ) { if ( _wait_for_vsync ) sceDisplayWaitVblankStart ( ) ; if ( gu_psm_format == GU_PSM_T8 ) { displayed_video_bitmap = bitmap ; texture_start = bitmap -> line [ 0 ] ; psp_draw_to_screen ( ) ; } else { if ( is_sub_bitmap ( bitmap ) ) return -1 ; sceDisplaySetFrameBuf ( ( void * ) BMP_EXTRA ( bitmap ) -> hw_addr , BMP_EXTRA ( bitmap ) -> pitch , gu_psm_format , PSP_DISPLAY_SETBUF_IMMEDIATE ) ; } return 0 ; }
psp_show_video_bitmap:
  Page flipping function: swaps to display the specified video memory
  bitmap object (this must be the same size as the physical screen).
psp_show_video_bitmap : Page flipping function : swaps to display the specified video memory bitmap object ( this must be the same size as the physical screen ) .
/* We position the texture data pointer at the new bitmap
       * and the screen display is updated.
       */ /* Truecolor pixel formats. */ /* No sub bitmaps are allowed. */