v0.9.4: corrected android graphics formats, as RBG888 is default now
This commit is contained in:
parent
c480d03d4e
commit
5ad6594786
|
@ -41,6 +41,7 @@ import com.shatteredpixel.shatteredpixeldungeon.services.updates.UpdateImpl;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.services.updates.Updates;
|
import com.shatteredpixel.shatteredpixeldungeon.services.updates.Updates;
|
||||||
import com.watabou.noosa.Game;
|
import com.watabou.noosa.Game;
|
||||||
import com.watabou.noosa.ui.Button;
|
import com.watabou.noosa.ui.Button;
|
||||||
|
import com.watabou.utils.DeviceCompat;
|
||||||
import com.watabou.utils.FileUtils;
|
import com.watabou.utils.FileUtils;
|
||||||
|
|
||||||
public class AndroidGame extends AndroidApplication {
|
public class AndroidGame extends AndroidApplication {
|
||||||
|
@ -90,11 +91,11 @@ public class AndroidGame extends AndroidApplication {
|
||||||
|
|
||||||
AndroidApplicationConfiguration config = new AndroidApplicationConfiguration();
|
AndroidApplicationConfiguration config = new AndroidApplicationConfiguration();
|
||||||
config.depth = 0;
|
config.depth = 0;
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
|
if (DeviceCompat.legacyDevice()) {
|
||||||
//use rgb888 on more modern devices for better visuals
|
//use rgb565 on older devices for better performance
|
||||||
config.r = config.g = config.b = 8;
|
config.r = 5;
|
||||||
} else {
|
config.g = 6;
|
||||||
//and rgb565 (default) on older ones for better performance
|
config.b = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
config.useCompass = false;
|
config.useCompass = false;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user