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:
parent
5c288b8d75
commit
408ac906bb
|
@ -277,6 +277,7 @@ final class MacOSXDisplay implements DisplayImplementation {
|
||||||
public DisplayMode[] getAvailableDisplayModes() throws LWJGLException {
|
public DisplayMode[] getAvailableDisplayModes() throws LWJGLException {
|
||||||
List<DisplayMode> modes = new ArrayList<DisplayMode>();
|
List<DisplayMode> modes = new ArrayList<DisplayMode>();
|
||||||
nGetDisplayModes(modes); // will populate the above list
|
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()]);
|
return modes.toArray(new DisplayMode[modes.size()]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue