mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-02 19:03:28 +00:00
Wrap old SDL code in a preproc directive.
This commit is contained in:
parent
8556d7a24e
commit
3318137077
@ -166,6 +166,8 @@ void palette_manager::handle_event(const SDL_Event& event) {
|
||||
}
|
||||
|
||||
const SDL_MouseButtonEvent mouse_button_event = event.button;
|
||||
|
||||
#if !SDL_VERSION_ATLEAST(2,0,0)
|
||||
if (mouse_button_event.type == SDL_MOUSEBUTTONDOWN) {
|
||||
if (mouse_button_event.button == SDL_BUTTON_WHEELUP) {
|
||||
scroll_up();
|
||||
@ -183,6 +185,7 @@ void palette_manager::handle_event(const SDL_Event& event) {
|
||||
}
|
||||
//set_dirty(true);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if SDL_VERSION_ATLEAST(2,0,0)
|
||||
if (event.type == SDL_MOUSEWHEEL) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user