mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 12:50:40 +00:00
Tidied
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5553 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d6e612f716
commit
e08782709a
4 changed files with 30 additions and 47 deletions
|
@ -1377,18 +1377,11 @@ GSSetDragTypes(NSView* obj, NSArray *types)
|
|||
if (coordinates_valid == NO)
|
||||
[self _rebuildCoordinates];
|
||||
/*
|
||||
* If this view is higher in the view hierarchy than one that
|
||||
* actually needs display, it's invalidRect will be empty, so
|
||||
* we need to set it to the visibleRect.
|
||||
* If this view is higher in the view hierarchy than ones that
|
||||
* actually needed display, it's invalidRect may not contain them
|
||||
* so we need to display the union with the visibleRect.
|
||||
*/
|
||||
if (NSIsEmptyRect(invalidRect) == YES)
|
||||
{
|
||||
rect = visibleRect;
|
||||
}
|
||||
else
|
||||
{
|
||||
rect = invalidRect;
|
||||
}
|
||||
rect = NSUnionRect(invalidRect, visibleRect);
|
||||
rect = [firstOpaque convertRect: rect fromView: self];
|
||||
[firstOpaque displayIfNeededInRectIgnoringOpacity: rect];
|
||||
}
|
||||
|
@ -1404,18 +1397,11 @@ GSSetDragTypes(NSView* obj, NSArray *types)
|
|||
if (coordinates_valid == NO)
|
||||
[self _rebuildCoordinates];
|
||||
/*
|
||||
* If this view is higher in the view hierarchy than one that
|
||||
* actually needs display, it's invalidRect will be empty, so
|
||||
* we need to set it to the visibleRect.
|
||||
* If this view is higher in the view hierarchy than ones that
|
||||
* actually needed display, it's invalidRect may not contain them
|
||||
* so we need to display the union with the visibleRect.
|
||||
*/
|
||||
if (NSIsEmptyRect(invalidRect) == YES)
|
||||
{
|
||||
rect = visibleRect;
|
||||
}
|
||||
else
|
||||
{
|
||||
rect = invalidRect;
|
||||
}
|
||||
rect = NSUnionRect(invalidRect, visibleRect);
|
||||
[self displayIfNeededInRectIgnoringOpacity: rect];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue