diff --git a/textscreen/txt_sdl.c b/textscreen/txt_sdl.c index de304c33..ac563b23 100644 --- a/textscreen/txt_sdl.c +++ b/textscreen/txt_sdl.c @@ -558,7 +558,7 @@ static int SDLButtonToTXTButton(int button) // Convert an SDL wheel motion to a textscreen button index. -static int SDLWheelToTXTButton(SDL_MouseWheelEvent *wheel) +static int SDLWheelToTXTButton(const SDL_MouseWheelEvent *wheel) { if (wheel->y <= 0) {