mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
(-drawLabel:inRect:): Use -drawInRect: instead of -drawAtPoint: to draw label.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17009 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7316997787
commit
722091ab9d
2 changed files with 9 additions and 8 deletions
|
@ -1,3 +1,8 @@
|
|||
2003-06-24 01:05 Alexander Malmberg <alexander@malmberg.org>
|
||||
|
||||
* Source/NSTabViewItem.m (-drawLabel:inRect:): Update for change
|
||||
in the behavior of -drawAtPoint:. Use -drawInRect: instead.
|
||||
|
||||
2003-06-23 19:03 Alexander Malmberg <alexander@malmberg.org>
|
||||
|
||||
* Source/NSStringDrawing.m (-drawAtPoint:): Place the text correctly
|
||||
|
|
|
@ -155,7 +155,7 @@
|
|||
inRect:(NSRect)tabRect
|
||||
{
|
||||
NSGraphicsContext *ctxt = GSCurrentContext();
|
||||
// NSRect lRect;
|
||||
NSRect lRect;
|
||||
NSRect fRect;
|
||||
NSDictionary *attr;
|
||||
NSString *string;
|
||||
|
@ -197,13 +197,9 @@
|
|||
[NSColor blackColor], NSForegroundColorAttributeName,
|
||||
nil];
|
||||
|
||||
// For some unclear reason, somehow connected with clipping,
|
||||
// drawInRect does not work here. But drawAtPoint works fine.
|
||||
[string drawAtPoint: NSMakePoint(tabRect.origin.x, NSMaxY(tabRect))
|
||||
withAttributes: attr];
|
||||
// lRect = tabRect;
|
||||
// lRect.origin.y += 3;
|
||||
// [_label drawInRect: lRect withAttributes: attr];
|
||||
lRect = tabRect;
|
||||
lRect.origin.y += 3;
|
||||
[string drawInRect: lRect withAttributes: attr];
|
||||
RELEASE(attr);
|
||||
|
||||
DPSgrestore(ctxt);
|
||||
|
|
Loading…
Reference in a new issue