pandora: use hw scaler (resolves 32x+sms), frontend refactoring
[libpicofe.git] / gp2x / emu.c
index 1f60e16..b019c3b 100644 (file)
@@ -13,6 +13,7 @@
 \r
 #include <stdio.h>\r
 #include <stdlib.h>\r
+#include <unistd.h>\r
 \r
 #include "plat_gp2x.h"\r
 #include "soc.h"\r
@@ -730,7 +731,7 @@ void pemu_sound_wait(void)
 }\r
 \r
 \r
-void pemu_forced_frame(int opts)\r
+void pemu_forced_frame(int opts, int no_scale)\r
 {\r
        int po_old = PicoOpt;\r
 \r
@@ -871,6 +872,10 @@ void pemu_loop_prep(void)
        vidResetMode();\r
        scaling_update();\r
 \r
+       // dirty buffers better go now than during gameplay\r
+       sync();\r
+       sleep(0);\r
+\r
        pemu_sound_start();\r
 }\r
 \r