mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 16:20:38 +00:00
Some more optimisation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4235 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
977ca1a87e
commit
7b54630f98
8 changed files with 59 additions and 22 deletions
|
@ -94,7 +94,7 @@ static SEL invalidateSel = @selector(_invalidateCoordinates);
|
|||
*/
|
||||
+ (NSView*) focusView
|
||||
{
|
||||
return [[NSGraphicsContext currentContext] focusView];
|
||||
return [GSCurrentContext() focusView];
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -1067,13 +1067,13 @@ static SEL invalidateSel = @selector(_invalidateCoordinates);
|
|||
|
||||
- (void) lockFocus
|
||||
{
|
||||
[[NSGraphicsContext currentContext] lockFocusView: self
|
||||
inRect: [self visibleRect]];
|
||||
[GSCurrentContext() lockFocusView: self
|
||||
inRect: [self visibleRect]];
|
||||
}
|
||||
|
||||
- (void) unlockFocus
|
||||
{
|
||||
[[NSGraphicsContext currentContext] unlockFocusView: self needsFlush: YES ];
|
||||
[GSCurrentContext() unlockFocusView: self needsFlush: YES ];
|
||||
}
|
||||
|
||||
- (BOOL) canDraw
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue