Use drawWithRect for tool tips

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@40216 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Marcian Lytwyn 2016-11-11 13:32:59 +00:00
parent 2ee2c4ca53
commit f382b159eb

View file

@ -157,7 +157,7 @@
NSRect textRect = NSInsetRect(frame, 2, 2);
NSDrawColorTiledRects(bounds, bounds, sides, colors, 4);
[_text drawInRect: textRect];
[_text drawWithRect: textRect options: NSStringDrawingUsesLineFragmentOrigin];
}
}
@end
@ -644,7 +644,6 @@ static BOOL restoreMouseMoved;
textSize = [toolTipText size];
// TESTPLANT-MAL-03092016: Merged...
#if 0
if (textSize.width > 300)
{
NSRect rect;
@ -654,7 +653,6 @@ static BOOL restoreMouseMoved;
// This extra pixel is needed, otherwise the last line gets cut off.
textSize.height += 1;
}
#endif
/* Create window just off the current mouse position
* Constrain it to be on screen, shrinking if necessary.