Force SW video mode in SDL_SetVideoMode() if enabled in AndroidAppSettings.cfg

This commit is contained in:
pelya
2012-08-06 17:05:40 +03:00
parent e8634e343b
commit 5c720fb3d9
11 changed files with 35 additions and 51 deletions

View File

@@ -2417,6 +2417,8 @@ class Settings
Globals.SwVideoMode = true;
nativeSetCompatibilityHacks();
}
if( Globals.SwVideoMode )
nativeSetVideoForceSoftwareMode();
if( Globals.SwVideoMode && Globals.MultiThreadedVideo )
nativeSetVideoMultithreaded();
if( Globals.PhoneHasTrackball )
@@ -2557,6 +2559,7 @@ class Settings
private static native void nativeSetVideoDepth(int bpp, int gles2);
private static native void nativeSetCompatibilityHacks();
private static native void nativeSetVideoMultithreaded();
private static native void nativeSetVideoForceSoftwareMode();
private static native void nativeSetupScreenKeyboard(int size, int drawsize, int theme, int nbuttonsAutoFire, int transparency);
private static native void nativeSetupScreenKeyboardButtons(byte[] img);
private static native void nativeInitKeymap();