projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31f8084
)
Fixed issue #956: mouse wheel scroll toggles active add-ons
author
Arian Behvandnejad
<buggy@lavabit.com>
Tue, 16 Apr 2013 22:23:48 +0000
(
02:53
+0430)
committer
LMH
<lmh.0013@gmail.com>
Tue, 23 Apr 2013 04:21:51 +0000
(18:21 -1000)
src/gui/menu.cpp
patch
|
blob
|
history
diff --git
a/src/gui/menu.cpp
b/src/gui/menu.cpp
index
b05d41e
..
21df675
100644
(file)
--- a/
src/gui/menu.cpp
+++ b/
src/gui/menu.cpp
@@
-779,6
+779,7
@@
Menu::event(const SDL_Event& event)
switch(event.type) {
case SDL_MOUSEBUTTONDOWN:
+ if(event.button.button == SDL_BUTTON_LEFT)
{
int x = int(event.motion.x * float(SCREEN_WIDTH)/g_screen->w);
int y = int(event.motion.y * float(SCREEN_HEIGHT)/g_screen->h);