X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=psp%2Fmenu.c;h=1f3c6ea3c13cf86a5c34ebe5aaa228b1e9d82a29;hb=db298784dd80d7c316cf6cdf314f029abe1fa1d9;hp=b2b3fc5fa55c9a7cecaa9b1900adc3f90e93fe19;hpb=2b90fc61e0907707c60bb01d97645b6afc22d4ae;p=libpicofe.git diff --git a/psp/menu.c b/psp/menu.c index b2b3fc5..1f3c6ea 100644 --- a/psp/menu.c +++ b/psp/menu.c @@ -39,8 +39,6 @@ static const char * const pspKeyNames[] = { pspKeyUnkn, pspKeyUnkn, pspKeyUnkn, pspKeyUnkn, pspKeyUnkn, pspKeyUnkn, pspKeyUnkn, pspKeyUnkn }; -unsigned int __attribute__((aligned(16))) guCmdList[1024]; // TODO: adjust, mv - static unsigned char bg_buffer[480*272*2] __attribute__((aligned(16))); // TODO: move to vram? #define menu_screen psp_screen @@ -92,10 +90,11 @@ static void menu_draw_begin(void) // for (i = 272; i >= 0; i--, dst += 512, src += 480) // memcpy32((int *)dst, (int *)src, 480*2/4); + sceGuSync(0,0); // sync with prev sceGuStart(GU_DIRECT, guCmdList); sceGuCopyImage(GU_PSM_5650, 0, 0, 480, 272, 480, bg_buffer, 0, 0, 512, menu_screen); sceGuFinish(); - sceGuSync(0, GU_SYNC_FINISH); + sceGuSync(0,0); }