hedgewars/CCHandlers.inc
changeset 1836 da31003c151f
parent 1821 6b6cf3389f92
child 1849 2a989e5abda6
equal deleted inserted replaced
1835:a55d16c645a1 1836:da31003c151f
   517 {$IFDEF DEBUGFILE}
   517 {$IFDEF DEBUGFILE}
   518 AddFileLog('Freeing old primary surface...');
   518 AddFileLog('Freeing old primary surface...');
   519 {$ENDIF}
   519 {$ENDIF}
   520 if SDLPrimSurface <> nil then SDL_FreeSurface(SDLPrimSurface);
   520 if SDLPrimSurface <> nil then SDL_FreeSurface(SDLPrimSurface);
   521 
   521 
       
   522 {$IFDEF DARWIN}
       
   523 {Fix for the Mac titlebar bug}
       
   524 flags:= flags or SDL_NOFRAME;
       
   525 {$ENDIF}
   522 SDLPrimSurface:= SDL_SetVideoMode(cScreenWidth, cScreenHeight, cBits, flags);
   526 SDLPrimSurface:= SDL_SetVideoMode(cScreenWidth, cScreenHeight, cBits, flags);
   523 SDLTry(SDLPrimSurface <> nil, true);
   527 SDLTry(SDLPrimSurface <> nil, true);
   524 
   528 
   525 {$IFDEF DEBUGFILE}
   529 {$IFDEF DEBUGFILE}
   526 AddFileLog('Setting up OpenGL...');
   530 AddFileLog('Setting up OpenGL...');