pandora: use hw scaler (resolves 32x+sms), frontend refactoring
[libpicofe.git] / gp2x / emu.c
index ad6b59b..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
@@ -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