MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / getFullscreenDimension

Method getFullscreenDimension

src/main/java/net/minecraft/src/Config.java:987–1002  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

985 }
986
987 public static Dimension getFullscreenDimension() {
988 if (desktopDisplayMode == null) {
989 return null;
990 } else if (gameSettings == null) {
991 return new Dimension(desktopDisplayMode.getWidth(), desktopDisplayMode.getHeight());
992 } else {
993 String s = gameSettings.ofFullscreenMode;
994
995 if (s.equals("Default")) {
996 return new Dimension(desktopDisplayMode.getWidth(), desktopDisplayMode.getHeight());
997 } else {
998 String[] astring = tokenize(s, " x");
999 return astring.length < 2 ? new Dimension(desktopDisplayMode.getWidth(), desktopDisplayMode.getHeight()) : new Dimension(parseInt(astring[0], -1), parseInt(astring[1], -1));
1000 }
1001 }
1002 }
1003
1004 public static int parseInt(String p_parseInt_0_, int p_parseInt_1_) {
1005 try {

Callers 1

checkDisplayModeMethod · 0.95

Calls 5

tokenizeMethod · 0.95
parseIntMethod · 0.95
getWidthMethod · 0.45
getHeightMethod · 0.45
equalsMethod · 0.45

Tested by

no test coverage detected