hedgewars/uRenderUtils.pas
changeset 6992 b8f3d8991e92
parent 6986 409dd3851309
child 7013 54db061b5710
--- a/hedgewars/uRenderUtils.pas	Wed May 02 12:24:44 2012 +0200
+++ b/hedgewars/uRenderUtils.pas	Wed May 02 11:43:43 2012 +0100
@@ -193,12 +193,11 @@
 
 procedure DrawLine2Surf(dest: PSDL_Surface; x0, y0,x1,y1: LongInt; r,g,b: byte);
 var
-    max: LongInt;
     dx,dy,err,e2,sx,sy: LongInt;
     yMax: LongInt;
     destPixels: PLongwordArray;
 begin
-    max:= (dest^.pitch div 4) * dest^.h;
+    //max:= (dest^.pitch div 4) * dest^.h;
     yMax:= dest^.pitch div 4;
     destPixels:= dest^.pixels;