mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-24 18:31:20 +00:00
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:
parent
b75a50f54e
commit
ca75f8eb2d
1 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue