v0.9.4: removed legacyDevice method from DeviceCompat
This commit is contained in:
parent
2e05e8051e
commit
2ba47587aa
|
@ -59,17 +59,6 @@ public class DeviceCompat {
|
|||
return Gdx.input.isPeripheralAvailable(Input.Peripheral.HardwareKeyboard);
|
||||
}
|
||||
|
||||
public static boolean legacyDevice(){
|
||||
switch (Gdx.app.getType()){
|
||||
case Android:
|
||||
//Devices prior to Android 4.1 Jelly Bean
|
||||
return Gdx.app.getVersion() < 16;
|
||||
default:
|
||||
//TODO implement functionality for other platforms here
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public static boolean isDebug(){
|
||||
return Game.version.contains("INDEV");
|
||||
}
|
||||
|
|
|
@ -98,8 +98,8 @@ public class AndroidGame extends AndroidApplication {
|
|||
|
||||
AndroidApplicationConfiguration config = new AndroidApplicationConfiguration();
|
||||
config.depth = 0;
|
||||
if (DeviceCompat.legacyDevice()) {
|
||||
//use rgb565 on older devices for better performance
|
||||
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.ICE_CREAM_SANDWICH_MR1) {
|
||||
//use rgb565 on ICS devices for better performance
|
||||
config.r = 5;
|
||||
config.g = 6;
|
||||
config.b = 5;
|
||||
|
|
Loading…
Reference in New Issue
Block a user