titlebar fix for Mac OS X by koda
authorunc0rr
Mon, 23 Feb 2009 20:43:05 +0000
changeset 1836 da31003c151f
parent 1835 a55d16c645a1
child 1837 650884b2e8c1
titlebar fix for Mac OS X by koda
hedgewars/CCHandlers.inc
--- a/hedgewars/CCHandlers.inc	Mon Feb 23 20:39:31 2009 +0000
+++ b/hedgewars/CCHandlers.inc	Mon Feb 23 20:43:05 2009 +0000
@@ -519,6 +519,10 @@
 {$ENDIF}
 if SDLPrimSurface <> nil then SDL_FreeSurface(SDLPrimSurface);
 
+{$IFDEF DARWIN}
+{Fix for the Mac titlebar bug}
+flags:= flags or SDL_NOFRAME;
+{$ENDIF}
 SDLPrimSurface:= SDL_SetVideoMode(cScreenWidth, cScreenHeight, cBits, flags);
 SDLTry(SDLPrimSurface <> nil, true);