mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +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)
|
static void gfx_ctx_set_resize(unsigned width, unsigned height)
|
||||||
{
|
{
|
||||||
#ifndef __APPLE__ // Resizing on OSX is broken in 1.2 it seems :)
|
#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
|
#else
|
||||||
static const int resizable = 0;
|
// Resize on OSX is broken.
|
||||||
|
(void)width;
|
||||||
|
(void)height;
|
||||||
#endif
|
#endif
|
||||||
SDL_SetVideoMode(width, height, 0, SDL_OPENGL | (g_fullscreen ? SDL_FULLSCREEN : resizable));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void gfx_ctx_swap_buffers(void)
|
static void gfx_ctx_swap_buffers(void)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user