equal
deleted
inserted
replaced
479 end |
479 end |
480 else SDL_WM_SetCaption('Hedgewars', nil); |
480 else SDL_WM_SetCaption('Hedgewars', nil); |
481 {$IFDEF DEBUGFILE} |
481 {$IFDEF DEBUGFILE} |
482 AddFileLog('Freeing old primary surface...'); |
482 AddFileLog('Freeing old primary surface...'); |
483 {$ENDIF} |
483 {$ENDIF} |
484 SDL_FreeSurface(SDLPrimSurface); |
484 if SDLPrimSurface <> nil then SDL_FreeSurface(SDLPrimSurface); |
485 |
485 |
486 SDLPrimSurface:= SDL_SetVideoMode(cScreenWidth, cScreenHeight, cBits, flags); |
486 SDLPrimSurface:= SDL_SetVideoMode(cScreenWidth, cScreenHeight, cBits, flags); |
487 SDLTry(SDLPrimSurface <> nil, true); |
487 SDLTry(SDLPrimSurface <> nil, true); |
488 |
488 |
489 {$IFDEF DEBUGFILE} |
489 {$IFDEF DEBUGFILE} |