Skip to content

Commit

Permalink
Disable some code for SDL2.
Browse files Browse the repository at this point in the history
The code doesn't compile for SDL2 and it seems a work-around for an
issue in SDL, so maybe it is no longer required with SDL2. This needs to
be tested later.
  • Loading branch information
mordante committed Mar 2, 2014
1 parent 57432e8 commit 49b2a04
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/controller_base.cpp
Expand Up @@ -102,6 +102,7 @@ void controller_base::handle_event(const SDL_Event& event)
show_menu(get_display().get_theme().context_menu()->items(),event.button.x,event.button.y,true, get_display());
}
break;
#if !SDL_VERSION_ATLEAST(2, 0, 0)
case SDL_ACTIVEEVENT:
if (event.active.state == SDL_APPMOUSEFOCUS && event.active.gain == 0) {
if (get_mouse_handler_base().is_dragging()) {
Expand All @@ -116,6 +117,7 @@ void controller_base::handle_event(const SDL_Event& event)
}
}
break;
#endif
default:
break;
}
Expand Down

0 comments on commit 49b2a04

Please sign in to comment.