Fixed my prev commit once again

This commit is contained in:
pelya
2014-03-02 21:32:15 +02:00
parent 403456b033
commit fae805d48f

View File

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