Skip to content

Commit

Permalink
Fixed typo that made mouse clicks not function properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Grumbel committed Jul 31, 2014
1 parent d607041 commit 2ec5c0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/menu.cpp
Expand Up @@ -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 &&
Expand Down

0 comments on commit 2ec5c0a

Please sign in to comment.