From 4d132111b2af5c448652a6326de7e355706ea9ab Mon Sep 17 00:00:00 2001 From: Pere Pujal i Carabantes Date: Thu, 5 Feb 2015 23:25:40 +0100 Subject: [PATCH] buttonscroll working again. --- src/tuxpaint.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tuxpaint.c b/src/tuxpaint.c index f4fee453e..e76042639 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -2009,8 +2009,6 @@ int file_exists(char * path); #define USEREVENT_TEXT_UPDATE 1 #define USEREVENT_PLAYDESCSOUND 2 -#define TP_SDL_MOUSEBUTTONSCROLL (SDL_USEREVENT + 1) - static int bypass_splash_wait; /* Wait for a keypress or mouse click. @@ -2198,6 +2196,8 @@ static void mainloop(void) int stamp_xored = 0; unsigned int i = 0; + + Uint32 TP_SDL_MOUSEBUTTONSCROLL = SDL_RegisterEvents(1); SDL_TimerID scrolltimer = NULL; SDL_Event event; SDLKey key;