From 2ec5c0a1b0a686b4cd2b491a825a226f3be13840 Mon Sep 17 00:00:00 2001 From: Ingo Ruhnke Date: Thu, 31 Jul 2014 07:58:04 +0200 Subject: [PATCH] Fixed typo that made mouse clicks not function properly --- src/gui/menu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/menu.cpp b/src/gui/menu.cpp index 3ff034bd0..48b1c8b6b 100644 --- a/src/gui/menu.cpp +++ b/src/gui/menu.cpp @@ -771,7 +771,7 @@ Menu::event(const SDL_Event& event) if(event.button.button == SDL_BUTTON_LEFT) { int x = int(event.motion.x * float(SCREEN_WIDTH) / PHYSICAL_SCREEN_WIDTH); - int y = int(event.motion.y * float(SCREEN_HEIGHT) / PHYSICAL_SCREEN_WIDTH); + int y = int(event.motion.y * float(SCREEN_HEIGHT) / PHYSICAL_SCREEN_HEIGHT); if(x > pos.x - get_width()/2 && x < pos.x + get_width()/2 && -- 2.11.0