mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-07 19:00:30 +02:00
cocoa: invert bitmap coordintes
git-svn-id: trunk@43474 -
This commit is contained in:
parent
c78384ddba
commit
6f8d2278a7
@ -1781,9 +1781,12 @@ begin
|
||||
// if Assigned(MskImage) then
|
||||
// CGContextClipToMask(LayerContext, ImgRect, MskImage);
|
||||
|
||||
// convert Y coodrinate of the source bitmap
|
||||
YSrc := Bmp.Height - (SrcHeight + YSrc);
|
||||
|
||||
Result := DrawImageRep(
|
||||
GetNSRect(X, Y, Width, Height),
|
||||
GetNSRect(XSrc, -YSrc, SrcWidth, SrcHeight), Bmp.ImageRep);
|
||||
GetNSRect(XSrc, YSrc, SrcWidth, SrcHeight), Bmp.ImageRep);
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user