Browse Source

Fix SDL1 build

pull/527/head
Anders Jenbo 6 years ago
parent
commit
3703978483
  1. 2
      SourceX/DiabloUI/diabloui.cpp

2
SourceX/DiabloUI/diabloui.cpp

@ -240,6 +240,7 @@ void UiFocusNavigation(SDL_Event *event)
break;
}
#ifndef USE_SDL1
if (event->type == SDL_MOUSEWHEEL) {
if (event->wheel.y > 0) {
UiFocus(SelectedItem - 1, UiItemsWraps);
@ -248,6 +249,7 @@ void UiFocusNavigation(SDL_Event *event)
}
return;
}
#endif
if (SDL_IsTextInputActive()) {
switch (event->type) {

Loading…
Cancel
Save