reworked palette and buffer handling due to some 32X bugs

This commit is contained in:
kub
2019-03-22 23:03:26 +01:00
parent 5cebb689c1
commit 8cfd88aac5
13 changed files with 236 additions and 130 deletions

View File

@@ -71,8 +71,8 @@ void pemu_finalize_frame(const char *fps, const char *notice)
unsigned char *ps = Pico.est.Draw2FB + 328*8 + 8;
unsigned short *pal = Pico.est.HighPal;
int i, x;
if (Pico.m.dirtyPal)
PicoDrawUpdateHighPal();
PicoDrawUpdateHighPal();
for (i = 0; i < 224; i++, ps += 8)
for (x = 0; x < 320; x++)
*pd++ = pal[*ps++];
@@ -109,6 +109,8 @@ static void apply_renderer(void)
if (PicoIn.AHW & PAHW_32X)
PicoDrawSetOutBuf(g_screen_ptr, g_screen_ppitch * 2);
Pico.m.dirtyPal = 1;
}
void plat_video_toggle_renderer(int change, int is_menu)