mirror of https://github.com/stella-emu/stella.git
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:
parent
a92cf466cb
commit
ae3df81967
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue