v0.5.0a: corrected the new screen detection forcing power saver
This commit is contained in:
parent
970c6cc791
commit
5491f315f6
|
@ -330,6 +330,9 @@ public class ShatteredPixelDungeon extends Game {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateDisplaySize(){
|
private void updateDisplaySize(){
|
||||||
|
if (view.getMeasuredWidth() == 0 || view.getMeasuredHeight() == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
dispWidth = view.getMeasuredWidth();
|
dispWidth = view.getMeasuredWidth();
|
||||||
dispHeight = view.getMeasuredHeight();
|
dispHeight = view.getMeasuredHeight();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user