mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 18:30:56 +00:00
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:
parent
e12c857386
commit
54f5952632
2 changed files with 6 additions and 7 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue