Use 'SDL_GetDisplayUsableBounds' if available (gives dimensions with dock/taskbar taken into account)

- This still needs some testing on Windows/OSX, so docs aren't updated yet
- If it ends up not working, I will '#if 0' it for the 6.0 release.
This commit is contained in:
Stephen Anthony 2018-12-18 23:07:34 -03:30
parent a92cf466cb
commit ae3df81967
1 changed files with 3 additions and 3 deletions

View File

@ -89,7 +89,7 @@ void FrameBufferSDL2::queryHardware(vector<GUI::Size>& displays,
// First get the maximum windowed desktop resolution // First get the maximum windowed desktop resolution
int maxDisplays = SDL_GetNumVideoDisplays(); int maxDisplays = SDL_GetNumVideoDisplays();
#if 0 //def BSPF_MAC_OSX #if SDL_VERSION_ATLEAST(2,0,5)
SDL_Rect r; SDL_Rect r;
for(int i = 0; i < maxDisplays; ++i) for(int i = 0; i < maxDisplays; ++i)
{ {