mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 15:20: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
|
@ -239,13 +239,11 @@
|
|||
|
||||
{
|
||||
NSGraphicsContext *ctxt = GSCurrentContext();
|
||||
[self lockFocus];
|
||||
DPSsetgray(ctxt, NSBlack);
|
||||
DPSrectfill(ctxt,_bounds.origin.x, _bounds.origin.y,
|
||||
_bounds.size.width, 1.);
|
||||
DPSrectfill(ctxt, NSMaxX(_bounds)-1., NSMinY(_bounds),
|
||||
1., _bounds.size.height);
|
||||
[self unlockFocus];
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -519,10 +517,12 @@
|
|||
rect.size.height--;
|
||||
[[currentColumn headerCell] setHighlighted: YES];
|
||||
|
||||
[self lockFocus];
|
||||
[[currentColumn headerCell]
|
||||
highlight: YES
|
||||
withFrame: rect
|
||||
inView: self];
|
||||
[self unlockFocus];
|
||||
[_window flushWindow];
|
||||
}
|
||||
|
||||
|
@ -755,10 +755,12 @@
|
|||
[[currentColumn headerCell]
|
||||
setHighlighted: NO];
|
||||
|
||||
[self lockFocus];
|
||||
[[currentColumn headerCell]
|
||||
highlight: NO
|
||||
withFrame: rect
|
||||
inView: self];
|
||||
[self unlockFocus];
|
||||
[_window flushWindow];
|
||||
}
|
||||
if (i > columnIndex)
|
||||
|
@ -810,10 +812,12 @@
|
|||
[[currentColumn headerCell]
|
||||
setHighlighted: NO];
|
||||
|
||||
[self lockFocus];
|
||||
[[currentColumn headerCell]
|
||||
highlight: NO
|
||||
withFrame: rect
|
||||
inView: self];
|
||||
[self unlockFocus];
|
||||
[_window flushWindow];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue