lines = 240;\r
}\r
\r
- HighCol = HighColBase + offs * HighColIncrement;\r
- DrawLineDest = (char *)DrawLineDestBase + offs * DrawLineDestIncrement;\r
- DrawScanline = 0;\r
- skip_next_line = 0;\r
-\r
if (rendstatus != rendstatus_old || lines != rendlines) {\r
rendlines = lines;\r
// mode_change() might reset rendstatus_old by calling SetColorFormat\r
rendstatus_old = rendstatus;\r
}\r
\r
+ HighCol = HighColBase + offs * HighColIncrement;\r
+ DrawLineDest = (char *)DrawLineDestBase + offs * DrawLineDestIncrement;\r
+ DrawScanline = 0;\r
+ skip_next_line = 0;\r
+\r
if (PicoOpt & POPT_ALT_RENDERER)\r
return;\r
\r
int state_slot = 0;\r
int config_slot = 0, config_slot_current = 0;\r
int pico_pen_x = 320/2, pico_pen_y = 240/2;\r
-int pico_inp_mode = 0;\r
+int pico_inp_mode;\r
+int flip_after_sync;\r
int engineState = PGS_Menu;\r
\r
static short __attribute__((aligned(4))) sndBuffer[2*44100/50];\r
PicoFrame();\r
pemu_finalize_frame(fpsbuff, notice_msg);\r
\r
- // plat_video_flip();\r
+ if (!flip_after_sync)\r
+ plat_video_flip();\r
\r
/* frame limiter */\r
if (!reset_timing && !(currentConfig.EmuOpt & (EOPT_NO_FRMLIMIT|EOPT_EXT_FRMLIMIT)))\r
}\r
}\r
\r
- // XXX: for some plats it might be better to flip before vsync\r
- // (due to shadow registers in display hw)\r
- plat_video_flip();\r
+ if (flip_after_sync)\r
+ plat_video_flip();\r
\r
pframes_done++; frames_done++; frames_shown++;\r
\r
extern int config_slot, config_slot_current;
extern unsigned char *movie_data;
extern int reset_timing;
+extern int flip_after_sync;
#define PICO_PEN_ADJUST_X 4
#define PICO_PEN_ADJUST_Y 2
in_set_config(in_name_to_id("evdev:pollux-analog"), IN_CFG_KEY_NAMES,
caanoo_keys, sizeof(caanoo_keys));
+ flip_after_sync = 1;
gp2x_menu_init();
}
if (doing_bg_frame)\r
return;\r
\r
- PicoDrawSetOutFormat(PDF_RGB555, 1);\r
- PicoDrawSetOutBuf(g_screen_ptr, g_screen_width * 2);\r
-\r
if (is_32cols) {\r
fb_w = 256;\r
fb_left = fb_right = 32;\r
vout_fbdev_clear(layer_fb);\r
vout_fbdev_resize(layer_fb, fb_w, fb_h, 16, fb_left, fb_right, fb_top, fb_bottom, 3);\r
plat_video_flip();\r
+\r
+ PicoDrawSetOutFormat(PDF_RGB555, 0);\r
}\r
\r
void plat_video_loop_prepare(void)\r