mirror of
https://github.com/libretro/RetroArch
synced 2025-03-12 13:13:30 +00:00
DRIVER_X11 appears to be defined on OSX.
This commit is contained in:
parent
f9f564c6c9
commit
83da5f2035
@ -263,7 +263,8 @@ bool gfx_ctx_key_pressed(int key)
|
||||
|
||||
// 1.2 specific workaround for tiling WMs. In 1.3 we call GetSize directly, so we don't need to rely on
|
||||
// proper event handling (I hope).
|
||||
#if !SDL_MODERN && defined(SDL_VIDEO_DRIVER_X11)
|
||||
#if !SDL_MODERN && !defined(__APPLE__) && defined(SDL_VIDEO_DRIVER_X11)
|
||||
// This X11 is set on OSX for some reason.
|
||||
static bool gfx_ctx_get_window_size(unsigned *width, unsigned *height)
|
||||
{
|
||||
SDL_SysWMinfo info;
|
||||
@ -348,7 +349,7 @@ static void check_window_legacy(bool *quit,
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef SDL_VIDEO_DRIVER_X11
|
||||
#if defined(SDL_VIDEO_DRIVER_X11) && !defined(__APPLE__)
|
||||
if (!*resize && !g_fullscreen)
|
||||
{
|
||||
unsigned new_width, new_height;
|
||||
|
Loading…
x
Reference in New Issue
Block a user