random minor fixes
authornotaz <notasas@gmail.com>
Fri, 10 Sep 2010 13:38:36 +0000 (13:38 +0000)
committernotaz <notasas@gmail.com>
Fri, 10 Sep 2010 13:38:36 +0000 (13:38 +0000)
git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@892 be3aeb3a-fb24-0410-a615-afba39da0efa

linux/emu.c
pandora/plat.c

index b582072..db5d6be 100644 (file)
@@ -179,7 +179,7 @@ void plat_video_menu_enter(int is_rom_loaded)
 void plat_video_menu_begin(void)\r
 {\r
        memcpy32(g_screen_ptr, g_menubg_ptr, g_screen_width * g_screen_height * 2 / 4);\r
-       g_menubg_ptr = g_screen_ptr;\r
+       g_menuscreen_ptr = g_screen_ptr;\r
 }\r
 \r
 void plat_video_menu_end(void)\r
index e857bcc..e259f85 100644 (file)
@@ -115,12 +115,10 @@ static int emuscan(unsigned int num)
 \r
 void pemu_finalize_frame(const char *fps, const char *notice)\r
 {\r
-       if (notice || (currentConfig.EmuOpt & EOPT_SHOW_FPS)) {\r
-               if (notice)\r
-                       osd_text(2, g_osd_y, notice);\r
-               if (currentConfig.EmuOpt & EOPT_SHOW_FPS)\r
-                       osd_text(g_osd_fps_x, g_osd_y, fps);\r
-       }\r
+       if (notice && notice[0])\r
+               osd_text(2, g_osd_y, notice);\r
+       if (fps && fps[0] && (currentConfig.EmuOpt & EOPT_SHOW_FPS))\r
+               osd_text(g_osd_fps_x, g_osd_y, fps);\r
        if ((PicoAHW & PAHW_MCD) && (currentConfig.EmuOpt & EOPT_EN_CD_LEDS))\r
                draw_cd_leds();\r
 }\r
@@ -426,6 +424,7 @@ void emu_video_mode_change(int start_line, int line_count, int is_32cols)
        pnd_setup_layer(1, g_layer_x, g_layer_y, g_layer_w, g_layer_h);\r
        vout_fbdev_resize(layer_fb, fb_w, fb_h, fb_left, fb_right, fb_top, fb_bottom, 0);\r
        vout_fbdev_clear(layer_fb);\r
+       plat_video_flip();\r
 }\r
 \r
 static void make_bg(void)\r