mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-04 18:10:26 +02:00
parent
131b7fcdb2
commit
673497d15b
@ -582,16 +582,16 @@ end;
|
||||
|
||||
procedure TFPCustomCanvas.CopyRect (x,y:integer; canvas:TFPCustomCanvas;
|
||||
SourceRect:TRect);
|
||||
var xx,r,t : integer;
|
||||
var yy,r,t : integer;
|
||||
begin
|
||||
SortRect (SourceRect);
|
||||
with SourceRect do
|
||||
for r := left to right do
|
||||
begin
|
||||
xx := r - left + x;
|
||||
for t := bottom to top do
|
||||
colors[xx,(t - bottom + y)] := canvas.colors[r,t];
|
||||
end;
|
||||
with SourceRect do begin
|
||||
for t := top to bottom do begin
|
||||
yy := t - top + y;
|
||||
for r := left to right do
|
||||
colors[r - left + x,yy] := canvas.colors[r,t];
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TFPCustomCanvas.Draw (x,y:integer; image:TFPCustomImage);
|
||||
|
Loading…
Reference in New Issue
Block a user