Hi all,
Is there a way in SDL to get the "live" desktop size? I'm able to receive the desktop area correctly, but what I want to do is force my game to fullscreen if too much of it is behind the dock on a Mac.
Since the screen is 800 pixels high, my game (at 768 pixels) reports that everything is okay-- but the bottom of the game (where I have some user interface) is behind the dock and can't be touched. Meanwhile, the game window can't be dragged any higher on the screen.
So in general, I want to just say "the screen's too small to access the bottom of a 768 pixel window because of the size of the dock-- go fullscreen." Any way to do that?
Thanks!
Show differencesHistory of post edits
#1JohnnyLightwave
Posted 29 December 2011 - 06:51 AM
Hi all,
Is there a way in SDL to get the "live" desktop size? I'm able to receive the desktop area correctly, but what I want to do is force my game to fullscreen if too much of it is behind the dock on a Mac.
Since the screen is 800 pixels high, my game (at 768 pixels) reports that everything is okay-- but the bottom of the game (where I have some user interface) is behind the dock and can't be touched. Meanwhile, the game window can't be dragged any higher on the screen.
So in general, I want to just say "the screen's too small to access the bottom of a 768 pixel window because of the size of the dock-- go fullscreen." Any way to do that?
Thanks!
Is there a way in SDL to get the "live" desktop size? I'm able to receive the desktop area correctly, but what I want to do is force my game to fullscreen if too much of it is behind the dock on a Mac.
Since the screen is 800 pixels high, my game (at 768 pixels) reports that everything is okay-- but the bottom of the game (where I have some user interface) is behind the dock and can't be touched. Meanwhile, the game window can't be dragged any higher on the screen.
So in general, I want to just say "the screen's too small to access the bottom of a 768 pixel window because of the size of the dock-- go fullscreen." Any way to do that?
Thanks!