mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 16:10:37 +00:00
* Source/NSImage.m (-nativeDrawInRect:...): Fix a bug in my recent change
here which mis-positioned images. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32921 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
76d30190e9
commit
2042ff816c
2 changed files with 7 additions and 1 deletions
|
@ -1059,12 +1059,13 @@ behavior precisely matches Cocoa. */
|
|||
DPSgsave(ctxt);
|
||||
|
||||
transform = [NSAffineTransform transform];
|
||||
[transform translateXBy: dstRect.origin.x yBy: dstRect.origin.y];
|
||||
[transform scaleXBy: dstRect.size.width / cacheSize.width
|
||||
yBy: dstRect.size.height / cacheSize.height];
|
||||
[transform concat];
|
||||
|
||||
[ctxt GSdraw: gState
|
||||
toPoint: dstRect.origin
|
||||
toPoint: NSMakePoint(0,0)
|
||||
fromRect: srcRectInCache
|
||||
operation: op
|
||||
fraction: delta];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue