hedgewars/uLandTexture.pas
changeset 2592 d86618629e20
parent 2587 0dfa56a8513c
child 2599 c7153d2348f3
equal deleted inserted replaced
2591:c6597b65caea 2592:d86618629e20
    60 function Pixels2(x, y: Longword): Pointer;
    60 function Pixels2(x, y: Longword): Pointer;
    61 var tx, ty: Longword;
    61 var tx, ty: Longword;
    62 begin
    62 begin
    63 for ty:= 0 to TEXSIZE - 1 do
    63 for ty:= 0 to TEXSIZE - 1 do
    64 	for tx:= 0 to TEXSIZE - 1 do
    64 	for tx:= 0 to TEXSIZE - 1 do
    65 		tmpPixels[ty, tx]:= Land[y * TEXSIZE + ty, x * TEXSIZE + tx] or $FF000000;
    65 		tmpPixels[ty, tx]:= Land[y * TEXSIZE + ty, x * TEXSIZE + tx] or AMask;
    66 
    66 
    67 Pixels2:= @tmpPixels
    67 Pixels2:= @tmpPixels
    68 end;
    68 end;
    69 
    69 
    70 procedure UpdateLandTexture(X, Width, Y, Height: LongInt);
    70 procedure UpdateLandTexture(X, Width, Y, Height: LongInt);