mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-05 06:25:46 +00:00
Don't allow switching to fullscreen when a custom display mode is in effect. This is a change from before, where the current mode was simply overwritten with the initial (desktop) mode
This commit is contained in:
parent
03749c312c
commit
15cf41553c
1 changed files with 1 additions and 2 deletions
|
|
@ -297,8 +297,7 @@ public final class Display {
|
|||
|
||||
private static void switchDisplayMode() throws LWJGLException {
|
||||
if (!current_mode.isFullscreen()) {
|
||||
LWJGLUtil.log("Switching to "+initial_mode);
|
||||
setDisplayMode(initial_mode);
|
||||
throw new IllegalStateException("Only modes acquired from getAvailableDisplayModes() can be used for fullscreen display");
|
||||
}
|
||||
display_impl.switchDisplayMode(current_mode);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue