Fix issue where the scaled desktop resolution was not included as part

of the Display.getAvailableDisplayModes() list on OS X
This commit is contained in:
kappaOne 2013-11-22 22:35:14 +00:00
parent 5c288b8d75
commit 408ac906bb
1 changed files with 1 additions and 0 deletions

View File

@ -277,6 +277,7 @@ final class MacOSXDisplay implements DisplayImplementation {
public DisplayMode[] getAvailableDisplayModes() throws LWJGLException {
List<DisplayMode> modes = new ArrayList<DisplayMode>();
nGetDisplayModes(modes); // will populate the above list
modes.add(Display.getDesktopDisplayMode()); // add desktop resolution as scaled resolutions do not appear
return modes.toArray(new DisplayMode[modes.size()]);
}