flushWindow updates

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4201 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fedor 1999-05-06 02:59:26 +00:00
parent a14735b7e9
commit 8a2bbcaae2
6 changed files with 33 additions and 19 deletions

View file

@ -1055,12 +1055,13 @@ static SEL invalidateSel = @selector(_invalidateCoordinates);
- (void) lockFocus
{
[[NSGraphicsContext currentContext] lockFocusView: self];
[[NSGraphicsContext currentContext] lockFocusView: self
inRect: [self visibleRect]];
}
- (void) unlockFocus
{
[[NSGraphicsContext currentContext] unlockFocusView: self];
[[NSGraphicsContext currentContext] unlockFocusView: self needsFlush: YES ];
}
- (BOOL) canDraw