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:
nico 2003-02-01 05:10:00 +00:00
parent 72512673b2
commit 2177ef847e
22 changed files with 111 additions and 115 deletions

View file

@ -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];
}