Skip to content

Commit

Permalink
Fixed issue #956: mouse wheel scroll toggles active add-ons
Browse files Browse the repository at this point in the history
  • Loading branch information
Arian Behvandnejad authored and LMH0013 committed Apr 23, 2013
1 parent 31f8084 commit 37e4a7b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/menu.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 37e4a7b

Please sign in to comment.