unbreak SDL 1.2 build. Koda needs to look at this
authornemo
Fri, 25 Mar 2011 19:42:00 -0400
changeset 5050 8eb096ee828e
parent 5049 96e51a62fb7f
child 5051 7b5fa8d3c904
unbreak SDL 1.2 build. Koda needs to look at this
hedgewars/SDLh.pas
hedgewars/uMisc.pas
--- a/hedgewars/SDLh.pas	Fri Mar 25 19:25:50 2011 -0400
+++ b/hedgewars/SDLh.pas	Fri Mar 25 19:42:00 2011 -0400
@@ -789,7 +789,7 @@
 procedure SDL_WarpMouse(x, y: Word); cdecl; external SDLLibName;
 
 function  SDL_AllocFormat(format: Longword): PSDL_PixelFormat;
-procedure SDL_FreeFormat(pixelformat: PSDL_PixelFormat);
+//procedure SDL_FreeFormat(pixelformat: PSDL_PixelFormat);
 {$ENDIF}
 
 function  SDL_GetKeyState(numkeys: PLongInt): PByteArray; cdecl; external SDLLibName {$IFDEF SDL13} name 'SDL_GetKeyboardState'{$ENDIF};
--- a/hedgewars/uMisc.pas	Fri Mar 25 19:25:50 2011 -0400
+++ b/hedgewars/uMisc.pas	Fri Mar 25 19:42:00 2011 -0400
@@ -148,7 +148,9 @@
 procedure freeModule;
 begin
     recordFileName:= '';
+{$IFDEF SDL13}
     SDL_FreeFormat(conversionFormat);
+{$ENDIF}
 end;
 
 end.