diff options
Diffstat (limited to 'src/demos/util')
-rwxr-xr-x | src/demos/util/ScreenResSelector.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/demos/util/ScreenResSelector.java b/src/demos/util/ScreenResSelector.java index 7b83ff6..07df833 100755 --- a/src/demos/util/ScreenResSelector.java +++ b/src/demos/util/ScreenResSelector.java @@ -62,7 +62,8 @@ public class ScreenResSelector { // Filter everything that is not at least 24-bit modes = filterDisplayModes(modes, new DisplayModeFilter() { public boolean filter(DisplayMode mode) { - return (mode.getBitDepth() >= 24); + // Bit depth < 0 means "multi-depth" -- can't reason about it + return (mode.getBitDepth() < 0 || mode.getBitDepth() >= 24); } }); // Filter everything less than 640x480 @@ -125,7 +126,7 @@ public class ScreenResSelector { } private static String modeToString(DisplayMode mode) { - return (mode.getBitDepth() + " bits, " + + return (((mode.getBitDepth() > 0) ? (mode.getBitDepth() + " bits, ") : "") + mode.getWidth() + "x" + mode.getHeight() + ", " + mode.getRefreshRate() + " Hz"); } |