From 166b6aa233bccb3ced3de74e94402a0f487eca8a Mon Sep 17 00:00:00 2001 From: Bill Kendrick Date: Thu, 19 May 2022 01:21:32 -0700 Subject: [PATCH] Mend bug in SDL agnostic SDL_TimerID check Had 0 vs NULL swapped between SDL 1 & 2 --- src/tuxpaint.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tuxpaint.c b/src/tuxpaint.c index 7cc5006a4..fe7cd04ff 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -2341,9 +2341,9 @@ on_screen_keyboard *new_kbd; SDL_Rect kbd_rect; #if (SDL_MAJOR_VERSION < 2) - #define TIMERID_NONE 0 -#else #define TIMERID_NONE NULL +#else + #define TIMERID_NONE 0 #endif int brushflag, xnew, ynew, eraflag, lineflag, magicflag, keybd_flag, keybd_position, keyglobal, initial_y, gen_key_flag,