--- a/hedgewars/uMisc.pas Thu May 03 22:48:02 2012 +0200
+++ b/hedgewars/uMisc.pas Tue May 22 11:19:32 2012 +0200
@@ -37,7 +37,7 @@
{$ENDIF}
implementation
-uses typinfo, sysutils, uVariables, uUtils
+uses SysUtils, uVariables, uUtils
{$IFDEF PNG_SCREENSHOTS}, PNGh, png {$ENDIF}
{$IFNDEF USE_SDLTHREADS} {$IFDEF UNIX}, cthreads{$ENDIF} {$ENDIF};
@@ -49,6 +49,8 @@
size: QWord;
end;
+var conversionFormat: PSDL_PixelFormat;
+
procedure movecursor(dx, dy: LongInt);
var x, y: LongInt;
begin
@@ -242,11 +244,11 @@
doSurfaceConversion:= tmpsurf;
if ((tmpsurf^.format^.bitsperpixel = 32) and (tmpsurf^.format^.rshift > tmpsurf^.format^.bshift)) or
(tmpsurf^.format^.bitsperpixel = 24) then
- begin
+ begin
convertedSurf:= SDL_ConvertSurface(tmpsurf, conversionFormat, SDL_SWSURFACE);
SDL_FreeSurface(tmpsurf);
doSurfaceConversion:= convertedSurf;
- end;
+ end;
end;
{$IFDEF SDL13}