From: Côme BERNIGAUD Date: Fri, 4 Jun 2010 19:48:39 +0000 (+0200) Subject: Removed an unused function X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=a9aed3805eda148c6962ab79473fb9788f9d2a72;p=lugaru.git Removed an unused function --- diff --git a/Source/OpenGL_Windows.cpp b/Source/OpenGL_Windows.cpp index 7e32f0b..ac4a13a 100644 --- a/Source/OpenGL_Windows.cpp +++ b/Source/OpenGL_Windows.cpp @@ -286,18 +286,6 @@ void DrawGL (Game & game) } } -static inline int clamp_sdl_mouse_button(Uint8 button) -{ - if (button == 2) // right mouse button is button 3 in SDL. - button = 3; - else if (button == 3) - button = 2; - - if ((button >= 1) && (button <= 3)) - return button - 1; - return -1; -} - static void sdlEventProc(const SDL_Event &e, Game &game) { int val; @@ -319,9 +307,6 @@ static void sdlEventProc(const SDL_Event &e, Game &game) SDL_WM_ToggleFullScreen(SDL_GetVideoSurface()); } return; - - case SDL_KEYUP: - return; } }