--- a/hedgewars/SDLh.pas Thu Mar 17 16:42:59 2011 +0100
+++ b/hedgewars/SDLh.pas Thu Mar 17 22:35:46 2011 +0100
@@ -184,6 +184,9 @@
SDL_WINDOWEVENT_FOCUS_GAINED = 11; //*< Window has gained keyboard focus
SDL_WINDOWEVENT_FOCUS_LOST = 12; //*< Window has lost keyboard focus
SDL_WINDOWEVENT_CLOSE = 13; //*< The window manager requests that the window be closed */
+
+ SDL_RENDERER_ACCELERATED = $00000001; //*< The renderer uses hardware acceleration
+ SDL_RENDERER_PRESENTVSYNC = $00000002; //*< Present is synchronized with the refresh rate
{$ELSE}
// SDL_Event types
SDL_NOEVENT = 0;
--- a/hedgewars/uStore.pas Thu Mar 17 16:42:59 2011 +0100
+++ b/hedgewars/uStore.pas Thu Mar 17 22:35:46 2011 +0100
@@ -930,7 +930,7 @@
y:= {$IFDEF IPHONEOS}(SDL_WINDOWPOS_CENTERED_MASK or (SDL_GetNumVideoDisplays() - 1)){$ELSE}0{$ENDIF};
SDLwindow:= SDL_CreateWindow('Hedgewars', x, y, cScreenWidth, cScreenHeight, SDL_WINDOW_OPENGL or SDL_WINDOW_SHOWN
{$IFDEF IPHONEOS} or SDL_WINDOW_BORDERLESS {$ENDIF});
- SDLrender:= SDL_CreateRenderer(SDLwindow, -1, 1 and 2);
+ SDLrender:= SDL_CreateRenderer(SDLwindow, -1, SDL_RENDERER_ACCELERATED or SDL_RENDERER_PRESENTVSYNC);
end;
SDL_SetRenderDrawColor(SDLrender, 0, 0, 0, 255);