Default settings tweaks for iOS
This commit is contained in:
@@ -485,7 +485,8 @@ public class SettingsMenuDialog extends BaseDialog{
|
|||||||
graphics.checkPref("animatedwater", true);
|
graphics.checkPref("animatedwater", true);
|
||||||
|
|
||||||
if(Shaders.shield != null){
|
if(Shaders.shield != null){
|
||||||
graphics.checkPref("animatedshields", !mobile);
|
//animated shields are off by default on android (generally lower spec devices)
|
||||||
|
graphics.checkPref("animatedshields", !android);
|
||||||
}
|
}
|
||||||
|
|
||||||
graphics.checkPref("bloom", true, val -> renderer.toggleBloom(val));
|
graphics.checkPref("bloom", true, val -> renderer.toggleBloom(val));
|
||||||
@@ -497,16 +498,12 @@ public class SettingsMenuDialog extends BaseDialog{
|
|||||||
});
|
});
|
||||||
|
|
||||||
//iOS (and possibly Android) devices do not support linear filtering well, so disable it
|
//iOS (and possibly Android) devices do not support linear filtering well, so disable it
|
||||||
if(!ios){
|
|
||||||
graphics.checkPref("linear", !mobile, b -> {
|
graphics.checkPref("linear", !mobile, b -> {
|
||||||
for(Texture tex : Core.atlas.getTextures()){
|
for(Texture tex : Core.atlas.getTextures()){
|
||||||
TextureFilter filter = b ? TextureFilter.linear : TextureFilter.nearest;
|
TextureFilter filter = b ? TextureFilter.linear : TextureFilter.nearest;
|
||||||
tex.setFilter(filter, filter);
|
tex.setFilter(filter, filter);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}else{
|
|
||||||
settings.put("linear", false);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(Core.settings.getBool("linear")){
|
if(Core.settings.getBool("linear")){
|
||||||
for(Texture tex : Core.atlas.getTextures()){
|
for(Texture tex : Core.atlas.getTextures()){
|
||||||
|
|||||||
Reference in New Issue
Block a user