You've already forked lazarus-ccr
fpspreadsheet: Improved painting of embedded images in worksheetgrid in case of scaling factor 1.0
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8329 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -3041,7 +3041,10 @@ begin
|
||||
SelectClipRgn(Canvas.Handle, rgn);
|
||||
R := Rect(0, 0, w, h);
|
||||
OffsetRect(R, imgRect.Left, imgRect.Top);
|
||||
Canvas.StretchDraw(R, TPicture(img^.Picture).Graphic);
|
||||
if (img^.ScaleX = 1.0) and (img^.ScaleY = 1.0) then
|
||||
Canvas.Draw(R.Left, R.Top, TPicture(img^.Picture).Graphic)
|
||||
else
|
||||
Canvas.StretchDraw(R, TPicture(img^.Picture).Graphic);
|
||||
finally
|
||||
DeleteObject(rgn);
|
||||
end;
|
||||
|
Reference in New Issue
Block a user