v0.7.4b: fixed errors when the app is rotated in power saver mode

This commit is contained in:
Evan Debenham 2019-07-30 18:56:56 -04:00
parent 9688c7566d
commit 441c171036

View File

@ -231,6 +231,12 @@ public class ShatteredPixelDungeon extends Game {
dispWidth = view.getMeasuredWidth();
dispHeight = view.getMeasuredHeight();
if ((dispWidth > dispHeight) != landscape){
int tmp = dispWidth;
dispWidth = dispHeight;
dispHeight = tmp;
}
float dispRatio = dispWidth / (float)dispHeight;