mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 08:37:41 +00:00
Don't allow resize on OSX with SDL context.
This commit is contained in:
parent
a647535df0
commit
7ab09e9d95
@ -196,11 +196,12 @@ static bool gfx_ctx_set_video_mode(
|
||||
static void gfx_ctx_set_resize(unsigned width, unsigned height)
|
||||
{
|
||||
#ifndef __APPLE__ // Resizing on OSX is broken in 1.2 it seems :)
|
||||
static const int resizable = SDL_RESIZABLE;
|
||||
SDL_SetVideoMode(width, height, 0, SDL_OPENGL | (g_fullscreen ? SDL_FULLSCREEN : SDL_RESIZABLE));
|
||||
#else
|
||||
static const int resizable = 0;
|
||||
// Resize on OSX is broken.
|
||||
(void)width;
|
||||
(void)height;
|
||||
#endif
|
||||
SDL_SetVideoMode(width, height, 0, SDL_OPENGL | (g_fullscreen ? SDL_FULLSCREEN : resizable));
|
||||
}
|
||||
|
||||
static void gfx_ctx_swap_buffers(void)
|
||||
|
Loading…
x
Reference in New Issue
Block a user