mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-08 19:37:37 +00:00
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:
parent
57432e805f
commit
49b2a04e38
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user