projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d607041
)
Fixed typo that made mouse clicks not function properly
author
Ingo Ruhnke
<grumbel@gmail.com>
Thu, 31 Jul 2014 05:58:04 +0000
(07:58 +0200)
committer
Ingo Ruhnke
<grumbel@gmail.com>
Thu, 31 Jul 2014 05:58:04 +0000
(07:58 +0200)
src/gui/menu.cpp
patch
|
blob
|
history
diff --git
a/src/gui/menu.cpp
b/src/gui/menu.cpp
index
3ff034b
..
48b1c8b
100644
(file)
--- 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 &&