mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 17:52:42 +00:00
Small drawing cleanup.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18567 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
32e72be592
commit
154110be23
3 changed files with 14 additions and 9 deletions
|
@ -1,3 +1,10 @@
|
|||
2004-02-09 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSLayoutManager.m (-drawGlyphsForGlyphRange:atPoint:)
|
||||
Replaced explicit colour setting.
|
||||
* Source/NSTabView.m: (-drawRect:) Use color constant instead of
|
||||
number in DPSsetgray().
|
||||
|
||||
2004-02-08 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Headers/Additions/GNUstepGUI/GSDrawFunctions.h: Add two more methods.
|
||||
|
|
|
@ -1450,13 +1450,11 @@ container
|
|||
characterIndex: char_index
|
||||
layoutManager: self];
|
||||
[f set];
|
||||
if (color)
|
||||
[color set];
|
||||
else
|
||||
if (color == nil)
|
||||
{
|
||||
DPSsetgray(ctxt, 0.0);
|
||||
DPSsetalpha(ctxt, 1.0);
|
||||
color = defaultTextColor;
|
||||
}
|
||||
[color set];
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -442,7 +442,7 @@
|
|||
r.size.height = 15 + iFlex;
|
||||
|
||||
DPSsetlinewidth(ctxt,1);
|
||||
DPSsetgray(ctxt,1);
|
||||
DPSsetgray(ctxt, NSWhite);
|
||||
DPSmoveto(ctxt, r.origin.x, r.origin.y-1);
|
||||
DPSrlineto(ctxt, r.size.width, 0);
|
||||
DPSstroke(ctxt);
|
||||
|
@ -500,7 +500,7 @@
|
|||
iFlex = 0;
|
||||
|
||||
DPSsetlinewidth(ctxt,1);
|
||||
DPSsetgray(ctxt,1);
|
||||
DPSsetgray(ctxt, NSWhite);
|
||||
DPSmoveto(ctxt, r.origin.x, r.origin.y - 1);
|
||||
DPSrlineto(ctxt, r.size.width, 0);
|
||||
DPSstroke(ctxt);
|
||||
|
@ -568,7 +568,7 @@
|
|||
r.size.height = 15;
|
||||
|
||||
DPSsetlinewidth(ctxt,1);
|
||||
DPSsetgray(ctxt,1);
|
||||
DPSsetgray(ctxt, NSWhite);
|
||||
DPSmoveto(ctxt, r.origin.x, r.origin.y+16);
|
||||
DPSrlineto(ctxt, r.size.width, 0);
|
||||
DPSstroke(ctxt);
|
||||
|
@ -616,7 +616,7 @@
|
|||
r.size.height = 15;
|
||||
|
||||
DPSsetlinewidth(ctxt,1);
|
||||
DPSsetgray(ctxt,1);
|
||||
DPSsetgray(ctxt, NSWhite);
|
||||
DPSmoveto(ctxt, r.origin.x, r.origin.y+16);
|
||||
DPSrlineto(ctxt, r.size.width, 0);
|
||||
DPSstroke(ctxt);
|
||||
|
|
Loading…
Reference in a new issue