and oooone last off-by-1 in ammo menu
authornemo
Tue, 07 Feb 2012 22:39:36 -0500
changeset 6652 b043665dea3d
parent 6651 4103354b7599
child 6653 d45b6dbd2ad6
and oooone last off-by-1 in ammo menu
hedgewars/uWorld.pas
--- a/hedgewars/uWorld.pas	Tue Feb 07 23:50:52 2012 +0100
+++ b/hedgewars/uWorld.pas	Tue Feb 07 22:39:36 2012 -0500
@@ -330,9 +330,9 @@
     end;
 
 for i:= 1 to SlotsNumX -1 do
-DrawLine2Surf(amSurface, i * (AMSlotSize+1), BORDERSIZE, i * (AMSlotSize+1), AMRect.h + BORDERSIZE - AMSlotSize - 2,160,160,160);            
+DrawLine2Surf(amSurface, i * (AMSlotSize+1)+1, BORDERSIZE, i * (AMSlotSize+1)+1, AMRect.h + BORDERSIZE - AMSlotSize - 2,160,160,160);            
 for i:= 1 to SlotsNumY -1 do
-DrawLine2Surf(amSurface, BORDERSIZE, i * (AMSlotSize+1), AMRect.w + BORDERSIZE, i * (AMSlotSize+1),160,160,160);
+DrawLine2Surf(amSurface, BORDERSIZE, i * (AMSlotSize+1)+1, AMRect.w + BORDERSIZE, i * (AMSlotSize+1)+1,160,160,160);
 
 //draw outer border
 DrawSprite2Surf(sprAMCorners, amSurface, 0                    , 0                    , 0);