Here is the code I'm using to switch to and from fullscreen mode:
Code:
//restore
DirectX.restore();
Appearance.borderStyle = Appearance.BSRESIZABLE;
SizeAndPos.windowSize = SizeAndPos.SSDEFAULT;
SizeAndPos.windowSize = SizeAndPos.SSDEFAULT;
Code:
//Fullscreen
DirectX.setDisplayMode(800, 600, 32);
Appearance.borderStyle = Appearance.BSNONE;
SizeAndPos.windowSize = SizeAndPos.SSFULLSCREEN;
Global.getMainWnd().center();
Global.getMainWnd().show();
Global.getMainWnd().update();
This works great for a normal monitor but with a wide screen monitor the window placement is wrong and all that can be seen is the bottom right quarter of the application window. Is there a way to center the window on a wide screen monitor?
Any help would be appreciated.