1
0
forked from 0ad/0ad

Disables broken window resizing and fullscreen toggling on OS X. Fixes #1381. Refs #741

This was SVN commit r11752.
This commit is contained in:
historic_bruno 2012-05-04 23:30:46 +00:00
parent 0463068947
commit 0c233487ec
2 changed files with 6 additions and 0 deletions

View File

@ -153,7 +153,10 @@ static InReaction MainInputHandler(const SDL_Event_* ev)
}
else if (hotkey == "togglefullscreen")
{
#if !OS_MACOSX
// TODO: Fix fullscreen toggling on OS X, see http://trac.wildfiregames.com/ticket/741
g_VideoMode.ToggleFullscreen();
#endif
return IN_HANDLED;
}
else if (hotkey == "profile2.enable")

View File

@ -110,8 +110,11 @@ bool CVideoMode::SetVideoMode(int w, int h, int bpp, bool fullscreen)
Uint32 flags = SDL_OPENGL;
if (fullscreen)
flags |= SDL_FULLSCREEN;
#if !OS_MACOSX
// TODO: Fix window resizing on OS X, see http://trac.wildfiregames.com/ticket/741
else
flags |= SDL_RESIZABLE;
#endif
SDL_Surface* screen = SDL_SetVideoMode(w, h, bpp, flags);