mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 19:47:39 +00:00
Lock focus / unlock focus optimizations and fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15839 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
959e21868b
commit
ba494c7cd9
22 changed files with 111 additions and 115 deletions
|
@ -324,9 +324,8 @@ static NSCell *tileCell = nil;
|
|||
{
|
||||
[imageCell setImage: anImage];
|
||||
}
|
||||
if (_window != nil)
|
||||
if ([self lockFocusIfCanDraw])
|
||||
{
|
||||
[self lockFocus];
|
||||
[self drawRect: [self bounds]];
|
||||
[self unlockFocus];
|
||||
[_window flushWindow];
|
||||
|
@ -351,9 +350,8 @@ static NSCell *tileCell = nil;
|
|||
{
|
||||
[titleCell setStringValue: aString];
|
||||
}
|
||||
if (_window != nil)
|
||||
if ([self lockFocusIfCanDraw])
|
||||
{
|
||||
[self lockFocus];
|
||||
[self drawRect: [self bounds]];
|
||||
[self unlockFocus];
|
||||
[_window flushWindow];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue