32x: various gfx related bugfixes
authornotaz <notasas@gmail.com>
Sun, 10 Jan 2010 22:58:13 +0000 (22:58 +0000)
committernotaz <notasas@gmail.com>
Sun, 10 Jan 2010 22:58:13 +0000 (22:58 +0000)
git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@856 be3aeb3a-fb24-0410-a615-afba39da0efa

linux/emu.c

index 7dc2c14..0ef599d 100644 (file)
@@ -156,6 +156,8 @@ static void apply_renderer(void)
                PicoDraw32xSetFrameMode(1, only_32x);\r
                PicoDrawSetOutBuf(g_screen_ptr, g_screen_width * 2);\r
        }\r
+       //PicoDraw32xSetFrameMode(0, 0);\r
+       //PicoDrawSetOutFormat(PDF_RGB555, 1);\r
 }\r
 \r
 void plat_video_toggle_renderer(int change, int is_menu)\r
@@ -220,7 +222,9 @@ void pemu_forced_frame(int opts)
        PicoOpt &= ~POPT_ALT_RENDERER;\r
        PicoOpt |= opts|POPT_ACC_SPRITES; // acc_sprites\r
 \r
-       PicoDrawSetOutFormat(PDF_RGB555, 0);\r
+       PicoDrawSetOutFormat(PDF_RGB555, 1);\r
+       PicoDrawSetOutBuf(g_screen_ptr, g_screen_width * 2);\r
+       PicoDraw32xSetFrameMode(0, 0);\r
 \r
        Pico.m.dirtyPal = 1;\r
        PicoFrameDrawOnly();\r
@@ -311,7 +315,9 @@ void pemu_loop_end(void)
        PicoOpt &= ~POPT_ALT_RENDERER;\r
        PicoOpt |= POPT_EN_SOFTSCALE|POPT_ACC_SPRITES;\r
 \r
-       PicoDrawSetOutFormat(PDF_RGB555, 0);\r
+       PicoDrawSetOutFormat(PDF_RGB555, 1);\r
+       PicoDrawSetOutBuf(g_screen_ptr, g_screen_width * 2);\r
+       PicoDraw32xSetFrameMode(0, 0);\r
        Pico.m.dirtyPal = 1;\r
        PicoFrame();\r
 \r