mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 13:10:52 +00:00
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:
parent
2ee2c4ca53
commit
f382b159eb
1 changed files with 1 additions and 3 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue