Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
Stella
Commits
a92cf466
Commit
a92cf466
authored
Mar 05, 2018
by
nanochess
Committed by
Stephen Anthony
Dec 18, 2018
Browse files
Desired desktop resolution minus dock for Mac OS X (requires SDL-2.0.5 or higher)
parent
f33ac273
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/common/FrameBufferSDL2.cxx
View file @
a92cf466
...
...
@@ -88,14 +88,24 @@ void FrameBufferSDL2::queryHardware(vector<GUI::Size>& displays,
ASSERT_MAIN_THREAD
;
// First get the maximum windowed desktop resolution
SDL_DisplayMode
display
;
int
maxDisplays
=
SDL_GetNumVideoDisplays
();
#if 0 //def BSPF_MAC_OSX
SDL_Rect r;
for(int i = 0; i < maxDisplays; ++i)
{
// Display bounds minus dock
SDL_GetDisplayUsableBounds(i, &r); // Requires SDL-2.0.5 or higher
displays.emplace_back(r.w, r.h);
}
#else
SDL_DisplayMode
display
;
for
(
int
i
=
0
;
i
<
maxDisplays
;
++
i
)
{
SDL_GetDesktopDisplayMode
(
i
,
&
display
);
displays
.
emplace_back
(
display
.
w
,
display
.
h
);
}
#endif
struct
RenderName
{
string
sdlName
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment