hedgewars/CCHandlers.inc
changeset 3522 156c04c6a3d8
parent 3426 4ec21c6d6d33
child 3523 6592fbb969da
equal deleted inserted replaced
3520:c3dcb80bdb1d 3522:156c04c6a3d8
   728     begin
   728     begin
   729 {$IFDEF DEBUGFILE}
   729 {$IFDEF DEBUGFILE}
   730         AddFileLog('Freeing old primary surface...');
   730         AddFileLog('Freeing old primary surface...');
   731 {$ENDIF}
   731 {$ENDIF}
   732         SDL_FreeSurface(SDLPrimSurface);
   732         SDL_FreeSurface(SDLPrimSurface);
       
   733         SDLPrimSurface:= nil;
   733     end;
   734     end;
   734     
   735     
   735 {$IFDEF SDL13}
   736 {$IFDEF SDL13}
   736     window:= SDL_CreateWindow('Hedgewars', 0, 0, cScreenWidth, cScreenHeight,
   737     window:= SDL_CreateWindow('Hedgewars', 0, 0, cScreenWidth, cScreenHeight,
   737         SDL_WINDOW_OPENGL or SDL_WINDOW_SHOWN    
   738         SDL_WINDOW_OPENGL or SDL_WINDOW_SHOWN