forked from 0ad/0ad
This was SVN commit r11752.
This commit is contained in:
parent
0463068947
commit
0c233487ec
@ -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")
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user