Don't un-flip coordinates when drawing in flipped views.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14445 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Alexander Malmberg 2002-09-15 11:20:32 +00:00
parent e12c857386
commit 54f5952632
2 changed files with 6 additions and 7 deletions

View file

@ -1,3 +1,9 @@
2002-09-15 13:17 Alexander Malmberg <alexander@malmberg.org>
* Source/NSImage.m (compositeToPoint:fromRect:operation:,,
dissolveToPoint:fromRect:fraction:): Don't un-flip coordinates
when drawing in flipped views.
2002-09-14 13:35 Alexander Malmberg <alexander@malmberg.org>
* Source/NSFontPanel.m: Break -browser:selectRow:inColumn: into

View file

@ -674,10 +674,6 @@ repd_for_rep(NSArray *_reps, NSImageRep *rep)
NSGraphicsContext *ctxt = GSCurrentContext();
float y = aPoint.y;
// FIXME: This undos the change done in NSCell, perhaps we can remove both?
if ([[ctxt focusView] isFlipped])
y -= rect.size.height;
NSDebugLLog(@"NSImage", @"composite rect %@ in %@",
NSStringFromRect(rect), NSStringFromRect(aRect));
// Move the drawing rectangle to the origin of the image rep
@ -759,9 +755,6 @@ repd_for_rep(NSArray *_reps, NSImageRep *rep)
NSGraphicsContext *ctxt = GSCurrentContext();
float y = aPoint.y;
if ([[ctxt focusView] isFlipped])
y -= rect.size.height;
// Move the drawing rectangle to the origin of the image rep
// and intersect the two rects.
aRect.origin.x += rect.origin.x;