mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 04:30:37 +00:00
Fix imgae compositing - intersect fromRect
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9589 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1ff4d1c990
commit
e197e9a3c4
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2001-04-14 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* Source/NSImage.m ([NSImage -compositeToPoint:fromRect:operation:]):
|
||||
intersect fromRect with image rect to get proper composite rect.
|
||||
|
||||
2001-03-27 Frederic De Jaeger <dejaeger@free.fr>
|
||||
|
||||
* Tools/Functions.m: remove some dummy functions that are useless
|
||||
|
|
|
@ -627,7 +627,8 @@ repd_for_rep(NSArray *_reps, NSImageRep *rep)
|
|||
// FIXME: This undos the change done in NSCell, perhaps we can remove both?
|
||||
if ([[ctxt focusView] isFlipped])
|
||||
y -= rect.size.height;
|
||||
// FIXME This should be able to cut out part of the image
|
||||
|
||||
rect = NSIntersectionRect(aRect, rect);
|
||||
PScomposite(NSMinX(rect), NSMinY(rect), NSWidth(rect), NSHeight(rect),
|
||||
[[(NSCachedImageRep *)rep window] gState], aPoint.x, y, op);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue