foxygit / doom Log in
commit 1758e8908027337097aacce0d150d30aa7c3a6b6
Author:     Turo Lamminen <turotl@gmail.com>
AuthorDate: Tue Mar 6 18:38:29 2018 +0200
Commit:     Turo Lamminen <turotl@gmail.com>
CommitDate: Tue Mar 13 19:33:47 2018 +0200

    textscreen: Make SDLWheelToTXTButton parameter const
---
 textscreen/txt_sdl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)
     {