do full frame before menu for proper bg
[libpicofe.git] / gp2x / emu.c
index 82f1c1d..7e60c2b 100644 (file)
@@ -788,6 +788,22 @@ void pemu_loop_prep(void)
 \r
 void pemu_loop_end(void)\r
 {\r
+       int po_old = PicoOpt;\r
+       int eo_old = currentConfig.EmuOpt;\r
+\r
+       /* do one more frame for menu bg */\r
+       PicoOpt &= ~POPT_ALT_RENDERER;\r
+       PicoOpt |= POPT_EN_SOFTSCALE|POPT_ACC_SPRITES;\r
+       currentConfig.EmuOpt |= EOPT_16BPP;\r
+\r
+       PicoScanBegin = EmuScanBegin16;\r
+       PicoScanEnd = NULL;\r
+       PicoDrawSetColorFormat(1);\r
+       Pico.m.dirtyPal = 1;\r
+       PicoFrame();\r
+\r
+       PicoOpt = po_old;\r
+       currentConfig.EmuOpt = eo_old;\r
 }\r
 \r
 const char *plat_get_credits(void)\r