Wrap old SDL code in a preproc directive.

This commit is contained in:
Boldizsár Lipka 2014-03-14 22:59:52 +01:00
parent 8556d7a24e
commit 3318137077

View File

@ -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) {