Xserver-gimp: fixed immersive mode

This commit is contained in:
Sergii Pylypenko
2013-11-14 17:58:02 +02:00
parent 2fb6a5bd95
commit 0fd6ec0268
2 changed files with 6 additions and 3 deletions

View File

@@ -526,6 +526,9 @@ class DemoRenderer extends GLSurfaceView_SDL.Renderer
MainActivity.LoadApplicationLibrary(context);
Settings.Apply(context);
Settings.nativeSetEnv( "DISPLAY_RESOLUTION_WIDTH", String.valueOf(Math.max(mWidth, mHeight)) );
Settings.nativeSetEnv( "DISPLAY_RESOLUTION_HEIGHT", String.valueOf(Math.min(mWidth, mHeight)) ); // In Kitkat with immersive mode, getWindowManager().getDefaultDisplay().getMetrics() return inaccurate height
accelerometer = new AccelerometerReader(context);
// Tweak video thread priority, if user selected big audio buffer
if(Globals.AudioBufferConfig >= 2)

View File

@@ -87,7 +87,7 @@ AppNeedsTwoButtonMouse=y
ShowMouseCursor=n
# Users are complaining that the video output is slow, so screw pen precision
GenerateSubframeTouchEvents=n
GenerateSubframeTouchEvents=y
# Force relative (laptop) mouse movement mode, useful when both on-screen keyboard and mouse are needed (y) or (n)
ForceRelativeMouseMode=n
@@ -175,10 +175,10 @@ MultiABI=armeabi-v7a
AppMinimumRAM=0
# Application version code (integer)
AppVersionCode=28204
AppVersionCode=28205
# Application user-visible version name (string)
AppVersionName="2.8.2.04"
AppVersionName="2.8.2.05"
# Reset SDL config when updating application to the new version (y) / (n)
ResetSdlConfigForThisVersion=y