hi, if you run this:
You'll see that the graphics window is centred horizontally and place near the top of the desktop. Fine. I'm wondering if the is Mac OSX doing the centreing and not BMax because on Windows PCs the Graphics window is NOT centred.
BUT if you uncomment the Graphics 800,600,32 which starts the app in full-screen mode first and also uncomment End Graphics, you'll notice that the final graphics window is drawn in the bottom left of the desktop instead of being centred, weird.
The mini-code above is supposed to simulate having a game that starts in full-screen then the user switches to windowed mode. They will expect the windowed mode to appear centred and not in a funny location.
I don't want to use MaxGUI for this so is there a fix/enhancement that can be applied to the code which creates a graphics window to centre it? Even a flag for centreing would be very useful as on PCs I have to "manually" centre it after it's created with an API call. Perhaps there's a MacOSX equivalent?
Many thanks in advance for your help with this.
Strict 'Graphics 800,600,32 'full-screen 'EndGraphics Graphics 800,600,0 'windowed While Not KeyHit(key_escape) Cls Flip Wend
You'll see that the graphics window is centred horizontally and place near the top of the desktop. Fine. I'm wondering if the is Mac OSX doing the centreing and not BMax because on Windows PCs the Graphics window is NOT centred.
BUT if you uncomment the Graphics 800,600,32 which starts the app in full-screen mode first and also uncomment End Graphics, you'll notice that the final graphics window is drawn in the bottom left of the desktop instead of being centred, weird.
The mini-code above is supposed to simulate having a game that starts in full-screen then the user switches to windowed mode. They will expect the windowed mode to appear centred and not in a funny location.
I don't want to use MaxGUI for this so is there a fix/enhancement that can be applied to the code which creates a graphics window to centre it? Even a flag for centreing would be very useful as on PCs I have to "manually" centre it after it's created with an API call. Perhaps there's a MacOSX equivalent?
Many thanks in advance for your help with this.