Fixed typo that made mouse clicks not function properly
authorIngo Ruhnke <grumbel@gmail.com>
Thu, 31 Jul 2014 05:58:04 +0000 (07:58 +0200)
committerIngo Ruhnke <grumbel@gmail.com>
Thu, 31 Jul 2014 05:58:04 +0000 (07:58 +0200)
src/gui/menu.cpp

index 3ff034b..48b1c8b 100644 (file)
@@ -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 &&