mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 19:50:48 +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
f1a60e57ff
commit
0ede427d8b
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>
|
2003-06-23 19:03 Alexander Malmberg <alexander@malmberg.org>
|
||||||
|
|
||||||
* Source/NSStringDrawing.m (-drawAtPoint:): Place the text correctly
|
* Source/NSStringDrawing.m (-drawAtPoint:): Place the text correctly
|
||||||
|
|
|
@ -155,7 +155,7 @@
|
||||||
inRect:(NSRect)tabRect
|
inRect:(NSRect)tabRect
|
||||||
{
|
{
|
||||||
NSGraphicsContext *ctxt = GSCurrentContext();
|
NSGraphicsContext *ctxt = GSCurrentContext();
|
||||||
// NSRect lRect;
|
NSRect lRect;
|
||||||
NSRect fRect;
|
NSRect fRect;
|
||||||
NSDictionary *attr;
|
NSDictionary *attr;
|
||||||
NSString *string;
|
NSString *string;
|
||||||
|
@ -197,13 +197,9 @@
|
||||||
[NSColor blackColor], NSForegroundColorAttributeName,
|
[NSColor blackColor], NSForegroundColorAttributeName,
|
||||||
nil];
|
nil];
|
||||||
|
|
||||||
// For some unclear reason, somehow connected with clipping,
|
lRect = tabRect;
|
||||||
// drawInRect does not work here. But drawAtPoint works fine.
|
lRect.origin.y += 3;
|
||||||
[string drawAtPoint: NSMakePoint(tabRect.origin.x, NSMaxY(tabRect))
|
[string drawInRect: lRect withAttributes: attr];
|
||||||
withAttributes: attr];
|
|
||||||
// lRect = tabRect;
|
|
||||||
// lRect.origin.y += 3;
|
|
||||||
// [_label drawInRect: lRect withAttributes: attr];
|
|
||||||
RELEASE(attr);
|
RELEASE(attr);
|
||||||
|
|
||||||
DPSgrestore(ctxt);
|
DPSgrestore(ctxt);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue