gp2x, fix to show pico ptr

This commit is contained in:
kub 2021-01-20 19:45:15 +01:00
parent f55fb31463
commit 794d463ce9

View file

@ -105,7 +105,7 @@ static void change_renderer(int diff)
} }
#define is_16bit_mode() \ #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); 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; int x, y, pitch = 320;
// only if pen enabled and for 16bit modes // 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; return;
x = pico_pen_x + PICO_PEN_ADJUST_X; x = pico_pen_x + PICO_PEN_ADJUST_X;