SDL: fixed SdlVideoResizeKeepAspect=y messing up mouse position after restoring app from background

This commit is contained in:
Sergii Pylypenko
2018-09-20 21:01:04 +03:00
parent aa7919811f
commit bef5f545c5
9 changed files with 21 additions and 16 deletions

View File

@@ -664,6 +664,9 @@ class DemoRenderer extends GLSurfaceView_SDL.Renderer
mHeight = h - h % 2;
mGl = gl;
nativeResize(mWidth, mHeight, Globals.KeepAspectRatio ? 1 : 0);
if( Globals.TouchscreenCalibration[2] > Globals.TouchscreenCalibration[0] )
Settings.nativeSetTouchscreenCalibration(Globals.TouchscreenCalibration[0], Globals.TouchscreenCalibration[1],
Globals.TouchscreenCalibration[2], Globals.TouchscreenCalibration[3]);
}
int mLastPendingResize = 0;