From: Ingo Ruhnke Date: Thu, 31 Jul 2014 05:58:04 +0000 (+0200) Subject: Fixed typo that made mouse clicks not function properly X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=2ec5c0a1b0a686b4cd2b491a825a226f3be13840;p=supertux.git Fixed typo that made mouse clicks not function properly --- 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 &&