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:
Nicola Pero 2003-02-01 05:10:00 +00:00
parent 959e21868b
commit ba494c7cd9
22 changed files with 111 additions and 115 deletions

View file

@ -161,10 +161,8 @@ static NSColor *txtCol;
{
if (_textfieldcell_draws_background)
{
[controlView lockFocus];
[_background_color set];
NSRectFill ([self drawingRectForBounds: cellFrame]);
[controlView unlockFocus];
}
[super drawInteriorWithFrame: cellFrame inView: controlView];
}