v0.7.0a: reverted screen distortion adjustments as they caused more issues than they fixed. Will try again for 0.7.0b
This commit is contained in:
+5
-10
@@ -22,7 +22,6 @@
|
|||||||
package com.shatteredpixel.shatteredpixeldungeon;
|
package com.shatteredpixel.shatteredpixeldungeon;
|
||||||
|
|
||||||
import android.content.pm.ActivityInfo;
|
import android.content.pm.ActivityInfo;
|
||||||
import android.content.res.Configuration;
|
|
||||||
import android.os.Build;
|
import android.os.Build;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
@@ -253,13 +252,6 @@ public class ShatteredPixelDungeon extends Game {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onConfigurationChanged(Configuration newConfig) {
|
|
||||||
super.onConfigurationChanged(newConfig);
|
|
||||||
|
|
||||||
updateDisplaySize();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void updateDisplaySize(){
|
public void updateDisplaySize(){
|
||||||
boolean landscape = SPDSettings.landscape();
|
boolean landscape = SPDSettings.landscape();
|
||||||
|
|
||||||
@@ -275,8 +267,11 @@ public class ShatteredPixelDungeon extends Game {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dispHeight = getWindow().getWindowManager().getDefaultDisplay().getHeight();
|
if (view.getMeasuredWidth() == 0 || view.getMeasuredHeight() == 0)
|
||||||
dispWidth = getWindow().getWindowManager().getDefaultDisplay().getWidth();
|
return;
|
||||||
|
|
||||||
|
dispWidth = view.getMeasuredWidth();
|
||||||
|
dispHeight = view.getMeasuredHeight();
|
||||||
|
|
||||||
float dispRatio = dispWidth / (float)dispHeight;
|
float dispRatio = dispWidth / (float)dispHeight;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user