# HG changeset patch # User unc0rr # Date 1235421785 0 # Node ID da31003c151f77936dfc6b6f5724ae8dea5fa10e # Parent a55d16c645a186d0bd7226b4c64c3d5a8dad5366 titlebar fix for Mac OS X by koda diff -r a55d16c645a1 -r da31003c151f 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);