mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 00:20:49 +00:00
Minor drawing fix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6164 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d7165b2965
commit
20ed77e8f9
3 changed files with 12 additions and 9 deletions
|
@ -1327,17 +1327,16 @@ static NSString *NSMenuLocationsKey = @"NSMenuLocations";
|
|||
- (void) drawRect: (NSRect)rect
|
||||
{
|
||||
NSGraphicsContext *ctxt = GSCurrentContext();
|
||||
NSRect workRect = rect;
|
||||
|
||||
NSRect workRect = [self bounds];
|
||||
|
||||
// Draw the dark gray upper left lines.
|
||||
DPSgsave(ctxt);
|
||||
DPSsetlinewidth(ctxt, 1);
|
||||
DPSsetgray(ctxt, 0.333);
|
||||
DPSmoveto(ctxt, workRect.origin.x, workRect.origin.y);
|
||||
DPSrlineto(ctxt, 0, workRect.size.height);
|
||||
DPSrlineto(ctxt, workRect.size.width, 0);
|
||||
DPSstroke(ctxt);
|
||||
DPSsetlinewidth(ctxt, 1);
|
||||
DPSsetgray(ctxt, 0.333);
|
||||
DPSmoveto(ctxt, workRect.origin.x, workRect.origin.y);
|
||||
DPSrlineto(ctxt, 0, workRect.size.height);
|
||||
DPSrlineto(ctxt, workRect.size.width, 0);
|
||||
DPSstroke(ctxt);
|
||||
DPSgrestore(ctxt);
|
||||
|
||||
// Draw the title box's button.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue