mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 05:10:38 +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
|
@ -534,15 +534,11 @@ static NSImage *_pbc_image[2];
|
|||
if (_buttoncell_is_transparent)
|
||||
return;
|
||||
|
||||
[view lockFocus];
|
||||
|
||||
cellFrame = [self drawingRectForBounds: cellFrame];
|
||||
|
||||
if (_cell.shows_first_responder
|
||||
&& [[view window] firstResponder] == view)
|
||||
NSDottedFrameRect(cellFrame);
|
||||
|
||||
[view unlockFocus];
|
||||
}
|
||||
|
||||
/* FIXME: this method needs to be rewritten to be something like
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue