ehh stuff isWidescreen
This commit is contained in:
@@ -401,6 +401,7 @@ public class DisplayContainer implements ErrorDumpable, SkinChangedListener {
|
||||
height = displayMode.getHeight();
|
||||
width2 = width / 2;
|
||||
height2 = height / 2;
|
||||
isWidescreen = width * 1000 / height > 1500; // 1777 = 16:9, 1333 = 4:3
|
||||
|
||||
Display.setDisplayMode(displayMode);
|
||||
Display.setFullscreen(fullscreen);
|
||||
@@ -460,10 +461,6 @@ public class DisplayContainer implements ErrorDumpable, SkinChangedListener {
|
||||
return (Sys.getTime() * 1000) / Sys.getTimerResolution();
|
||||
}
|
||||
|
||||
public boolean isWidescreen() {
|
||||
return width * 1000 / height > 1500; // 1777 = 16:9, 1333 = 4:3
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeErrorDump(StringWriter dump) {
|
||||
dump.append("> DisplayContainer dump\n");
|
||||
|
||||
@@ -79,6 +79,7 @@ public class InstanceContainer {
|
||||
public static GamePauseMenu pauseState;
|
||||
|
||||
public static int width, width2, height, height2;
|
||||
public static boolean isWidescreen;
|
||||
public static int mouseX, mouseY;
|
||||
public static int renderDelta;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user