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:
alexm 2002-09-15 11:20:32 +00:00
parent 3a937cbaaf
commit d2342fdf45
2 changed files with 6 additions and 7 deletions

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;