Disable some code for SDL2.

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.
This commit is contained in:
Mark de Wever 2014-03-02 11:10:30 +01:00
parent 57432e805f
commit 49b2a04e38

View File

@ -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()) {
@ -116,6 +117,7 @@ void controller_base::handle_event(const SDL_Event& event)
}
}
break;
#endif
default:
break;
}