mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-26 12:19:21 +02:00
examples: sprites: added comment about stretchdraw
git-svn-id: trunk@15119 -
This commit is contained in:
parent
27cf27363d
commit
67f9451c09
@ -157,7 +157,8 @@ end;
|
||||
procedure TPictureControl.Paint;
|
||||
begin
|
||||
if Picture.Graphic<>nil then
|
||||
Canvas.StretchDraw(Rect(0,0,Width,Height),Picture.Graphic);
|
||||
// Canvas.Draw(0,0,Picture.Graphic); // copy is fast
|
||||
Canvas.StretchDraw(Rect(0,0,Width,Height),Picture.Graphic); // stretch is slow
|
||||
inherited Paint;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user