and or is not or and is not and
authorkoda
Thu, 17 Mar 2011 22:35:46 +0100
changeset 5018 cede79695460
parent 5017 d29cf06d7d11
child 5019 e38d1720a0ff
and or is not or and is not and
hedgewars/SDLh.pas
hedgewars/uStore.pas
--- 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);