From a41b3b44eba91f83902c90c6075fe3b14b488a78 Mon Sep 17 00:00:00 2001 From: notaz Date: Sun, 10 Jan 2010 22:58:13 +0000 Subject: [PATCH] 32x: various gfx related bugfixes git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@856 be3aeb3a-fb24-0410-a615-afba39da0efa --- linux/emu.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/linux/emu.c b/linux/emu.c index 7dc2c14..0ef599d 100644 --- a/linux/emu.c +++ b/linux/emu.c @@ -156,6 +156,8 @@ static void apply_renderer(void) PicoDraw32xSetFrameMode(1, only_32x); PicoDrawSetOutBuf(g_screen_ptr, g_screen_width * 2); } + //PicoDraw32xSetFrameMode(0, 0); + //PicoDrawSetOutFormat(PDF_RGB555, 1); } void plat_video_toggle_renderer(int change, int is_menu) @@ -220,7 +222,9 @@ void pemu_forced_frame(int opts) PicoOpt &= ~POPT_ALT_RENDERER; PicoOpt |= opts|POPT_ACC_SPRITES; // acc_sprites - PicoDrawSetOutFormat(PDF_RGB555, 0); + PicoDrawSetOutFormat(PDF_RGB555, 1); + PicoDrawSetOutBuf(g_screen_ptr, g_screen_width * 2); + PicoDraw32xSetFrameMode(0, 0); Pico.m.dirtyPal = 1; PicoFrameDrawOnly(); @@ -311,7 +315,9 @@ void pemu_loop_end(void) PicoOpt &= ~POPT_ALT_RENDERER; PicoOpt |= POPT_EN_SOFTSCALE|POPT_ACC_SPRITES; - PicoDrawSetOutFormat(PDF_RGB555, 0); + PicoDrawSetOutFormat(PDF_RGB555, 1); + PicoDrawSetOutBuf(g_screen_ptr, g_screen_width * 2); + PicoDraw32xSetFrameMode(0, 0); Pico.m.dirtyPal = 1; PicoFrame(); -- 2.39.5