From d2342fdf45c465cef40f7565f805f984c62bdf4c Mon Sep 17 00:00:00 2001 From: alexm Date: Sun, 15 Sep 2002 11:20:32 +0000 Subject: [PATCH] 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 --- ChangeLog | 6 ++++++ Source/NSImage.m | 7 ------- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index e724a02d8..76cb33bbc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2002-09-15 13:17 Alexander Malmberg + + * 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 * Source/NSFontPanel.m: Break -browser:selectRow:inColumn: into diff --git a/Source/NSImage.m b/Source/NSImage.m index 1cfc48b11..3c4ca6ff0 100644 --- a/Source/NSImage.m +++ b/Source/NSImage.m @@ -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;