diff --git a/project/java/Video.java b/project/java/Video.java index eb25252dc..746a05d88 100644 --- a/project/java/Video.java +++ b/project/java/Video.java @@ -631,7 +631,9 @@ class DemoRenderer extends GLSurfaceView_SDL.Renderer ww = topView.getWidth() - topView.getWidth() % 2; hh = topView.getHeight() - topView.getHeight() % 2; } - if (mWidth != 0 && mHeight != 0 && (mWidth != ww || mHeight != hh)) + if (mWidth != 0 && mHeight != 0 && ( + Math.abs(mWidth - ww) > mWidth / 10 || + Math.abs(mHeight - hh) > mHeight / 10)) { Log.w("SDL", "libSDL: DemoRenderer.onWindowResize(): screen size changed from " + mWidth + "x" + mHeight + " to " + ww + "x" + hh + " - restarting application"); Intent intent = new Intent(context, RestartMainActivity.class); diff --git a/project/jni/application/xserver/AndroidAppSettings.cfg b/project/jni/application/xserver/AndroidAppSettings.cfg index 5bc76e329..f77ee3b77 100644 --- a/project/jni/application/xserver/AndroidAppSettings.cfg +++ b/project/jni/application/xserver/AndroidAppSettings.cfg @@ -7,10 +7,10 @@ AppName="XServer XSDL" AppFullName=x.org.server # Application version code (integer) -AppVersionCode=11120 +AppVersionCode=11121 # Application user-visible version name (string) -AppVersionName="1.11.20" +AppVersionName="1.11.21" # Specify path to download application data in zip archive in the form 'Description|URL|MirrorURL^Description2|URL2|MirrorURL2^...' # If you'll start Description with '!' symbol it will be enabled by default, other downloads should be selected by user from startup config menu