From 794d463ce9e1be9a25dc0552055b7a93e1d70666 Mon Sep 17 00:00:00 2001 From: kub Date: Wed, 20 Jan 2021 19:45:15 +0100 Subject: [PATCH] gp2x, fix to show pico ptr --- platform/gp2x/emu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/gp2x/emu.c b/platform/gp2x/emu.c index ba1568b8..523505f1 100644 --- a/platform/gp2x/emu.c +++ b/platform/gp2x/emu.c @@ -105,7 +105,7 @@ static void change_renderer(int diff) } #define is_16bit_mode() \ - (get_renderer() == RT_16BIT || (PicoIn.AHW & PAHW_32X)) + (currentConfig.renderer == RT_16BIT || (PicoIn.AHW & PAHW_32X)) static void (*osd_text)(int x, int y, const char *text); @@ -192,7 +192,7 @@ static void draw_pico_ptr(void) int x, y, pitch = 320; // only if pen enabled and for 16bit modes - if (pico_inp_mode == 0 || currentConfig.EmuOpt != RT_16BIT) + if (pico_inp_mode == 0 || !is_16bit_mode()) return; x = pico_pen_x + PICO_PEN_ADJUST_X; -- 2.39.5