mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 20:40:47 +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
973ee6fa02
commit
dc0022cf51
1 changed files with 12 additions and 0 deletions
|
@ -543,6 +543,10 @@ static NSImage *arrowImageH = nil;
|
||||||
if (NSIsEmptyRect(cellFrame))
|
if (NSIsEmptyRect(cellFrame))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
// Do nothing if the window is deferred
|
||||||
|
if ([[controlView window] gState] == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
[controlView lockFocus];
|
[controlView lockFocus];
|
||||||
|
|
||||||
// Draw the border if needed
|
// Draw the border if needed
|
||||||
|
@ -563,6 +567,14 @@ static NSImage *arrowImageH = nil;
|
||||||
if (_buttoncell_is_transparent)
|
if (_buttoncell_is_transparent)
|
||||||
return;
|
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];
|
cellFrame = [self drawingRectForBounds: cellFrame];
|
||||||
|
|
||||||
// Pushed in buttons contents are displaced to the bottom right 1px
|
// Pushed in buttons contents are displaced to the bottom right 1px
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue