mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 13: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
72512673b2
commit
2177ef847e
22 changed files with 111 additions and 115 deletions
|
@ -615,7 +615,6 @@
|
|||
// draw the border if needed
|
||||
if (_cell.is_bordered)
|
||||
{
|
||||
[controlView lockFocus];
|
||||
// FIXME Should check the bezel and gradient style
|
||||
if (_cell.is_highlighted && (_highlightsByMask & NSPushInCellMask))
|
||||
{
|
||||
|
@ -625,7 +624,6 @@
|
|||
{
|
||||
NSDrawButton(cellFrame, NSZeroRect);
|
||||
}
|
||||
[controlView unlockFocus];
|
||||
}
|
||||
|
||||
[self drawInteriorWithFrame: cellFrame inView: controlView];
|
||||
|
@ -651,7 +649,6 @@
|
|||
_control_view = controlView;
|
||||
|
||||
cellFrame = [self drawingRectForBounds: cellFrame];
|
||||
[controlView lockFocus];
|
||||
|
||||
if (_cell.is_highlighted)
|
||||
{
|
||||
|
@ -897,8 +894,6 @@
|
|||
else
|
||||
NSDottedFrameRect(titleRect);
|
||||
}
|
||||
|
||||
[controlView unlockFocus];
|
||||
}
|
||||
|
||||
- (NSSize) cellSize
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue