fixes for platform support for PSP: show fps, notices, CD leds

This commit is contained in:
kub 2021-02-10 22:55:30 +01:00
parent bfd6662370
commit b1b5f9c094
3 changed files with 45 additions and 23 deletions

View file

@ -195,6 +195,7 @@ void psp_finish(void)
void psp_video_flip(int wait_vsync)
{
void *fb = (void *)((unsigned long)psp_screen & ~0x40000000);
sceGuSync(0, 0);
if (wait_vsync) sceDisplayWaitVblankStart();
sceDisplaySetFrameBuf(fb, 512, PSP_DISPLAY_PIXEL_FORMAT_565,
wait_vsync ? PSP_DISPLAY_SETBUF_IMMEDIATE : PSP_DISPLAY_SETBUF_NEXTFRAME);