v0.7.4b: fixed errors when the app is rotated in power saver mode
This commit is contained in:
parent
9688c7566d
commit
441c171036
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user