Improve win/lose screen layout in Landscape mode

This commit is contained in:
drdev
2015-05-24 22:47:39 +00:00
parent f353d07271
commit 486a743e52

View File

@@ -165,6 +165,9 @@ public class ViewWinLose extends FOverlay implements IWinLoseView<FButton> {
protected void doLayout(float width, float height) {
float x = width * INSETS_FACTOR;
float y = x;
if (Forge.isLandscapeMode()) { //prevent everything being too wide in Landscape mode
x += width * 0.25f;
}
float w = width - 2 * x;
float dy = height * GAP_Y_FACTOR;