equal
deleted
inserted
replaced
695 {$IFDEF SDL13} |
695 {$IFDEF SDL13} |
696 window:= SDL_CreateWindow('Hedgewars', 0, 0, cScreenWidth, cScreenHeight, |
696 window:= SDL_CreateWindow('Hedgewars', 0, 0, cScreenWidth, cScreenHeight, |
697 SDL_WINDOW_OPENGL or SDL_WINDOW_SHOWN |
697 SDL_WINDOW_OPENGL or SDL_WINDOW_SHOWN |
698 {$IFDEF IPHONEOS} or SDL_WINDOW_BORDERLESS{$ENDIF}); |
698 {$IFDEF IPHONEOS} or SDL_WINDOW_BORDERLESS{$ENDIF}); |
699 SDL_CreateRenderer(window, -1, 0); |
699 SDL_CreateRenderer(window, -1, 0); |
700 PixelFormat:= nil; |
700 |
701 |
|
702 SDL_SetRenderDrawColor(0, 0, 0, 255); |
701 SDL_SetRenderDrawColor(0, 0, 0, 255); |
703 SDL_RenderFill(nil); |
702 SDL_RenderFill(nil); |
704 SDL_RenderPresent(); |
703 SDL_RenderPresent(); |
705 {$ELSE} |
704 {$ELSE} |
706 SDLPrimSurface:= SDL_SetVideoMode(cScreenWidth, cScreenHeight, cBits, flags); |
705 SDLPrimSurface:= SDL_SetVideoMode(cScreenWidth, cScreenHeight, cBits, flags); |