Fixed my prev commit

This commit is contained in:
pelya
2014-03-02 21:31:30 +02:00
parent b7bea2773d
commit 403456b033
2 changed files with 5 additions and 1 deletions

View File

@@ -506,6 +506,7 @@ class Settings
static void Apply(MainActivity p)
{
setEnvVars();
nativeSetVideoDepth(Globals.VideoDepthBpp, Globals.NeedGles2 ? 1 : 0);
if(Globals.VideoLinearFilter)
nativeSetVideoLinearFilter();
@@ -569,7 +570,10 @@ class Settings
if( Globals.TouchscreenCalibration[2] > Globals.TouchscreenCalibration[0] )
nativeSetTouchscreenCalibration(Globals.TouchscreenCalibration[0], Globals.TouchscreenCalibration[1],
Globals.TouchscreenCalibration[2], Globals.TouchscreenCalibration[3]);
}
static void setEnvVars()
{
String lang = new String(Locale.getDefault().getLanguage());
if( Locale.getDefault().getCountry().length() > 0 )
lang = lang + "_" + Locale.getDefault().getCountry();