I’m porting SH to 0.95 but I can’t get the ingame mode switching to work flawlessly.
-
Switching between displaymodes retrieved from Display.getAvailableDisplayModes() results in windowed mode results in first a mode switch to 640x480 then back to desktop resolution. Then there seems to be 2 windows. A black undecorated window. Behind it a decorated with my game partially showing.
-
Staring in fullscreen and setting a displaymode created with the DisplayMode constructor do of course not work. But I get native crash wich is a bit unplesant. Fair enough.
-
Starting in fullscreen and later calling Display.setFullscreen(false) I get the following native crash:
- Starting in fullscreen and later switching to displaymode I got using Display.getDisplayMode() before Display was created the first time, I also get the same native crash as above.
At this point I gave up staring in fullscreen mode and trying to switch to windowed mode 
- There is 2 mode switches when I need to switch between windowed/fullscreen and also change resolution. As both setFullscreen and setDisplayMode will change mode. This is a bit unpleasant on my monitor as it makes 2 loud sounds each time a mode is changed. Any chance of having a setDisplayMode(DisplayMode newMode, boolean fullscreen) that does it with only one mode change?
So I’m having great problems switching modes in game. Is this something you are willing to fix. How are you dealing with it?
