mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-24 06:28:54 +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
2152bc64af
commit
10285e908f
3 changed files with 12 additions and 9 deletions
|
@ -1,3 +1,8 @@
|
|||
Fri Mar 03 05:36:00 2000 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
* Source/NSMenu.m:([NSMenuWindowTitleView -drawRect:]) fixed to draw
|
||||
contents in bounds rather than given rect.
|
||||
|
||||
Fri Mar 3 02:25:24 2000 Nicola Pero <n.pero@mi.flashnet.it>
|
||||
|
||||
* Source/NSWindow.m ([-performZoom:]), ([-zoom:]): Added methods
|
||||
|
|
|
@ -500,7 +500,6 @@ extern NSSize NSTokenSize;
|
|||
- (void) performDeminiaturize: sender;
|
||||
- (void) performHide: sender;
|
||||
- (void) performUnhide: sender;
|
||||
- (void) setContentViewSize: (NSSize)aSize;
|
||||
- (void) _setVisible: (BOOL)flag;
|
||||
|
||||
@end
|
||||
|
|
|
@ -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…
Reference in a new issue