Lock focus fixes - get cells to lock focus before drawing themselves.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4924 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-09-21 05:10:54 +00:00
parent 8171e4cc22
commit dd34792910
13 changed files with 85 additions and 25 deletions

View file

@ -252,11 +252,13 @@ static BOOL usesUserKeyEquivalents = YES;
- (void) drawWithFrame: (NSRect)cellFrame
inView: (NSView *)controlView
{
NSGraphicsContext *ctxt = GSCurrentContext();
NSGraphicsContext *ctxt;
NSRect floodRect = cellFrame;
NSString *keyQ = nil;
NSColor *backColor;
[controlView lockFocus];
ctxt = GSCurrentContext();
NSDrawButton(cellFrame, cellFrame);
floodRect.origin.x += 1;
@ -326,5 +328,6 @@ static BOOL usesUserKeyEquivalents = YES;
[self _drawText:keyQ inFrame:floodRect];
}
[controlView unlockFocus];
}
@end