hedgewars/SDLh.pas
changeset 2240 7ce9e6b7be3b
parent 2200 8192be6e3aef
child 2241 7992f7ba388d
--- a/hedgewars/SDLh.pas	Tue Jul 07 15:24:43 2009 +0000
+++ b/hedgewars/SDLh.pas	Tue Jul 07 21:48:55 2009 +0000
@@ -62,16 +62,35 @@
       {$ENDIF}
       SDL_SWSURFACE   = $00000000;
       SDL_HWSURFACE   = $00000001;
-      SDL_ASYNCBLIT   = $00000004;
-      SDL_ANYFORMAT   = $10000000;
+      SDL_SRCALPHA    = $00010000;
+      SDL_INIT_VIDEO  = $00000020;
+      SDL_INIT_AUDIO  = $00000010;
+
+	  {$IFDEF SDL13}
+	  SDL_ASYNCBLIT   = $08000000;
+	  SDL_ANYFORMAT   = $10000000;
+      SDL_HWPALETTE   = $00200000;
+      SDL_DOUBLEBUF   = $00400000;
+      SDL_FULLSCREEN  = $00800000;
+      SDL_HWACCEL     = $08000000;
+      SDL_SRCCOLORKEY = $00020000;
+      SDL_RLEACCEL    = $08000000;
+	  SDL_NOFRAME     = $02000000;
+	  SDL_OPENGL	  = $04000000;
+      SDL_RESIZABLE   = $01000000;
+	  {$ELSE}
+	  SDL_ASYNCBLIT   = $00000004;
+	  SDL_ANYFORMAT	  = $00100000;
       SDL_HWPALETTE   = $20000000;
       SDL_DOUBLEBUF   = $40000000;
       SDL_FULLSCREEN  = $80000000;
-      SDL_NOFRAME     = $00000020;
       SDL_HWACCEL     = $00000100;
       SDL_SRCCOLORKEY = $00001000;
       SDL_RLEACCEL    = $00004000;
-      SDL_SRCALPHA    = $00010000;
+      SDL_NOFRAME     = $00000020;
+      SDL_OPENGL	  = $00000002;
+      SDL_RESIZABLE   = $00000010;
+	  {$ENDIF}
 
       SDL_NOEVENT     = 0;
       SDL_ACTIVEEVENT = 1;
@@ -81,17 +100,11 @@
       SDL_VIDEORESIZE = 16;
 
       SDL_APPINPUTFOCUS = 2;
-
-      SDL_INIT_VIDEO  = $00000020;
-      SDL_INIT_AUDIO  = $00000010;
+      SDL_GL_DOUBLEBUFFER = 5;
 
-      SDL_GL_DOUBLEBUFFER = 5;
-      SDL_OPENGL          = 2;
-      SDL_RESIZABLE       = $00000010;
-
-      RMask = $FF;
-      GMask = $FF00;
-      BMask = $FF0000;
+      RMask = $000000FF;
+      GMask = $0000FF00;
+      BMask = $00FF0000;
       AMask = $FF000000;
 
 type PSDL_Rect = ^TSDL_Rect;