v0.5.0a: corrected the new screen detection forcing power saver

This commit is contained in:
Evan Debenham 2017-02-13 01:05:49 -05:00
parent 970c6cc791
commit 5491f315f6

View File

@ -330,6 +330,9 @@ public class ShatteredPixelDungeon extends Game {
}
private void updateDisplaySize(){
if (view.getMeasuredWidth() == 0 || view.getMeasuredHeight() == 0)
return;
dispWidth = view.getMeasuredWidth();
dispHeight = view.getMeasuredHeight();