Do not draw in deferred windows

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8311 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2000-12-12 18:45:22 +00:00
parent b75a50f54e
commit ca75f8eb2d

View file

@ -543,6 +543,10 @@ static NSImage *arrowImageH = nil;
if (NSIsEmptyRect(cellFrame))
return;
// Do nothing if the window is deferred
if ([[controlView window] gState] == 0)
return;
[controlView lockFocus];
// Draw the border if needed
@ -563,6 +567,14 @@ static NSImage *arrowImageH = nil;
if (_buttoncell_is_transparent)
return;
// Do nothing if the cell frame is empty
if (NSIsEmptyRect(cellFrame))
return;
// Do nothing if the window is deferred
if ([[controlView window] gState] == 0)
return;
cellFrame = [self drawingRectForBounds: cellFrame];
// Pushed in buttons contents are displaced to the bottom right 1px