| 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 { |