X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Flinux%2Femu.c;h=08421fae7d7e1fc1fdd84cea707265aa304c8079;hb=fcdefcf62cb71969b456a6f27688adbeb5890bb9;hp=7dc2c14ec89211d5311865bda92f646b6e8aa17a;hpb=5a68108691ed5685682ce133aa0bcf6015c0afd8;p=picodrive.git diff --git a/platform/linux/emu.c b/platform/linux/emu.c index 7dc2c14..08421fa 100644 --- a/platform/linux/emu.c +++ b/platform/linux/emu.c @@ -18,10 +18,8 @@ static short __attribute__((aligned(4))) sndBuffer[2*44100/50]; char cpu_clk_name[] = "unused"; -const char *renderer_names_[] = { "16bit accurate", " 8bit accurate", " 8bit fast", NULL }; -const char *renderer_names32x_[] = { "accurate", "faster ", "fastest ", NULL }; -const char **renderer_names = renderer_names_; -const char **renderer_names32x = renderer_names32x_; +const char *renderer_names[] = { "16bit accurate", " 8bit accurate", " 8bit fast", NULL }; +const char *renderer_names32x[] = { "accurate", "faster", "fastest", NULL }; enum renderer_types { RT_16BIT, RT_8BIT_ACC, RT_8BIT_FAST, RT_COUNT }; @@ -156,6 +154,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 +220,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 +313,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();