mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 19:10:48 +00:00
Tidy
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6290 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3db0c0f9e6
commit
b5be67ab7d
1 changed files with 14 additions and 3 deletions
|
@ -1625,14 +1625,20 @@ GSSetDragTypes(NSView* obj, NSArray *types)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If the rect we displayed contains the _invalidRect or _visibleRect
|
* If the rect we displayed contains the _invalidRect or _visibleRect
|
||||||
* then we can empty _invalidRect. If all subviews have been
|
* then we can empty _invalidRect.
|
||||||
* fully displayed, so this view no longer needs to be displayed.
|
* If all subviews have been fully displayed, we can also turn off the
|
||||||
|
* 'needs_display' flag.
|
||||||
*/
|
*/
|
||||||
if (NSEqualRects(aRect, NSUnionRect(neededRect, aRect)) == YES)
|
if (NSEqualRects(aRect, NSUnionRect(neededRect, aRect)) == YES)
|
||||||
{
|
{
|
||||||
_invalidRect = NSZeroRect;
|
_invalidRect = NSZeroRect;
|
||||||
_rFlags.needs_display = subviewNeedsDisplay;
|
_rFlags.needs_display = subviewNeedsDisplay;
|
||||||
}
|
}
|
||||||
|
if (_rFlags.needs_display == YES
|
||||||
|
&& NSEqualRects(aRect, NSUnionRect(_visibleRect, aRect)) == YES)
|
||||||
|
{
|
||||||
|
_rFlags.needs_display = NO;
|
||||||
|
}
|
||||||
[_window flushWindow];
|
[_window flushWindow];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1738,13 +1744,18 @@ GSSetDragTypes(NSView* obj, NSArray *types)
|
||||||
/*
|
/*
|
||||||
* If the rect we displayed contains the _invalidRect or _visibleRect
|
* If the rect we displayed contains the _invalidRect or _visibleRect
|
||||||
* then we can empty _invalidRect. If all subviews have been
|
* then we can empty _invalidRect. If all subviews have been
|
||||||
* fully displayed, so this view no longer needs to be displayed.
|
* fully displayed, we can also turn off the 'needs_display' flag.
|
||||||
*/
|
*/
|
||||||
if (NSEqualRects(aRect, NSUnionRect(neededRect, aRect)) == YES)
|
if (NSEqualRects(aRect, NSUnionRect(neededRect, aRect)) == YES)
|
||||||
{
|
{
|
||||||
_invalidRect = NSZeroRect;
|
_invalidRect = NSZeroRect;
|
||||||
_rFlags.needs_display = subviewNeedsDisplay;
|
_rFlags.needs_display = subviewNeedsDisplay;
|
||||||
}
|
}
|
||||||
|
if (_rFlags.needs_display == YES
|
||||||
|
&& NSEqualRects(aRect, NSUnionRect(_visibleRect, aRect)) == YES)
|
||||||
|
{
|
||||||
|
_rFlags.needs_display = NO;
|
||||||
|
}
|
||||||
[_window flushWindow];
|
[_window flushWindow];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue