You've already forked lazarus-ccr
All dot on right position in stretch picture.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2222 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -819,7 +819,7 @@ begin
|
||||
dh := aHeight;
|
||||
Dest.Width := dw;
|
||||
Dest.Height := dh;
|
||||
m := Trunc(ypos / ih);
|
||||
{ m := Trunc(ypos / ih);
|
||||
n := Trunc(xpos / iw);
|
||||
for i := ypos to ylen - 1 do
|
||||
begin
|
||||
@ -834,6 +834,16 @@ begin
|
||||
if (j mod iw) = 0 then
|
||||
k := k + 1;
|
||||
end;
|
||||
end; }
|
||||
for i := ypos to ylen - 1 do
|
||||
begin
|
||||
LScan1 := Dest.Scanline[i - ypos];
|
||||
LScan2 := Src.Scanline[Trunc(i / sh)];
|
||||
for j := xpos to xlen - 1 do
|
||||
begin
|
||||
k := Trunc(j / sw);
|
||||
LScan1[j - xpos] := LScan2[k];
|
||||
end;
|
||||
end;
|
||||
Dest.InvalidateScanLine;
|
||||
ACanvas.Draw(NewLeft + posx, NewTop + posy, Dest);
|
||||
|
Reference in New Issue
Block a user