mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 14:20:37 +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
3a937cbaaf
commit
d2342fdf45
2 changed files with 6 additions and 7 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue