Oops, fixed zoom-in gesture again

This commit is contained in:
Sergii Pylypenko
2017-06-23 19:20:35 +03:00
parent 9f38ccb2f3
commit 5705c47f49
2 changed files with 7 additions and 7 deletions

View File

@@ -666,6 +666,13 @@ int VideoDriver_SDL::PollEvent()
}
#endif
break;
#ifdef __ANDROID__
case SDL_JOYBALLMOTION:
if (ev.jball.which == 0 && ev.jball.ball == 1) {
_multitouch_second_point.x = ev.jball.xrel;
_multitouch_second_point.y = ev.jball.yrel;
}
#endif /* not __ANDROID__ */
#ifndef __ANDROID__
case SDL_VIDEORESIZE: {
int w = max(ev.resize.w, 64);
@@ -673,11 +680,6 @@ int VideoDriver_SDL::PollEvent()
CreateMainSurface(w, h);
break;
}
case SDL_JOYBALLMOTION:
if (evt.jball.which == 0 && evt.jball.ball == 1) {
_multitouch_second_point.x = evt.jball.xrel;
_multitouch_second_point.y = evt.jball.yrel;
}
#endif /* not __ANDROID__ */
case SDL_VIDEOEXPOSE: {
/* Force a redraw of the entire screen. Note

View File

@@ -3,8 +3,6 @@
- Smallmap UI won't fit all FIRS industries.
- Put mouse cursor in the middle between touch points when zooming in and out.
- Add 'Goal' menu item somewhere to compact toolbar.
- Misclicking station from orders dialog should hide the dialog for 3 times.