diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llmath/llrect.h | 4 | ||||
-rwxr-xr-x | linden/indra/llplugin/llpluginclassmedia.cpp | 4 | ||||
-rw-r--r-- | linden/indra/llui/llpanel.cpp | 2 | ||||
-rw-r--r-- | linden/indra/llui/llview.cpp | 4 | ||||
-rw-r--r-- | linden/indra/newview/llviewerwindow.cpp | 2 |
5 files changed, 8 insertions, 8 deletions
diff --git a/linden/indra/llmath/llrect.h b/linden/indra/llmath/llrect.h index 9eb58db..33070c4 100644 --- a/linden/indra/llmath/llrect.h +++ b/linden/indra/llmath/llrect.h | |||
@@ -229,14 +229,14 @@ public: | |||
229 | return mLeft <= mRight && mBottom <= mTop; | 229 | return mLeft <= mRight && mBottom <= mTop; |
230 | } | 230 | } |
231 | 231 | ||
232 | bool isNull() const | 232 | bool isEmpty() const |
233 | { | 233 | { |
234 | return mLeft == mRight || mBottom == mTop; | 234 | return mLeft == mRight || mBottom == mTop; |
235 | } | 235 | } |
236 | 236 | ||
237 | bool notNull() const | 237 | bool notNull() const |
238 | { | 238 | { |
239 | return !isNull(); | 239 | return !isEmpty(); |
240 | } | 240 | } |
241 | 241 | ||
242 | LLRectBase& unionWith(const LLRectBase &other) | 242 | LLRectBase& unionWith(const LLRectBase &other) |
diff --git a/linden/indra/llplugin/llpluginclassmedia.cpp b/linden/indra/llplugin/llpluginclassmedia.cpp index 9f14920..5dc0c47 100755 --- a/linden/indra/llplugin/llpluginclassmedia.cpp +++ b/linden/indra/llplugin/llpluginclassmedia.cpp | |||
@@ -393,7 +393,7 @@ bool LLPluginClassMedia::textureValid(void) | |||
393 | 393 | ||
394 | bool LLPluginClassMedia::getDirty(LLRect *dirty_rect) | 394 | bool LLPluginClassMedia::getDirty(LLRect *dirty_rect) |
395 | { | 395 | { |
396 | bool result = !mDirtyRect.isNull(); | 396 | bool result = !mDirtyRect.isEmpty(); |
397 | 397 | ||
398 | if(dirty_rect != NULL) | 398 | if(dirty_rect != NULL) |
399 | { | 399 | { |
@@ -793,7 +793,7 @@ void LLPluginClassMedia::receivePluginMessage(const LLPluginMessage &message) | |||
793 | newDirtyRect.mBottom = temp; | 793 | newDirtyRect.mBottom = temp; |
794 | } | 794 | } |
795 | 795 | ||
796 | if(mDirtyRect.isNull()) | 796 | if(mDirtyRect.isEmpty()) |
797 | { | 797 | { |
798 | mDirtyRect = newDirtyRect; | 798 | mDirtyRect = newDirtyRect; |
799 | } | 799 | } |
diff --git a/linden/indra/llui/llpanel.cpp b/linden/indra/llui/llpanel.cpp index 26137d7..07e78ed 100644 --- a/linden/indra/llui/llpanel.cpp +++ b/linden/indra/llui/llpanel.cpp | |||
@@ -1171,7 +1171,7 @@ void LLLayoutStack::draw() | |||
1171 | 1171 | ||
1172 | LLLocalClipRect clip(clip_rect); | 1172 | LLLocalClipRect clip(clip_rect); |
1173 | // only force drawing invisible children if visible amount is non-zero | 1173 | // only force drawing invisible children if visible amount is non-zero |
1174 | drawChild(panelp, 0, 0, !clip_rect.isNull()); | 1174 | drawChild(panelp, 0, 0, !clip_rect.isEmpty()); |
1175 | } | 1175 | } |
1176 | } | 1176 | } |
1177 | 1177 | ||
diff --git a/linden/indra/llui/llview.cpp b/linden/indra/llui/llview.cpp index 1f76696..d4eda8f 100644 --- a/linden/indra/llui/llview.cpp +++ b/linden/indra/llui/llview.cpp | |||
@@ -1542,7 +1542,7 @@ void LLView::updateBoundingRect() | |||
1542 | 1542 | ||
1543 | LLRect child_bounding_rect = childp->getBoundingRect(); | 1543 | LLRect child_bounding_rect = childp->getBoundingRect(); |
1544 | 1544 | ||
1545 | if (local_bounding_rect.isNull()) | 1545 | if (local_bounding_rect.isEmpty()) |
1546 | { | 1546 | { |
1547 | // start out with bounding rect equal to first visible child's bounding rect | 1547 | // start out with bounding rect equal to first visible child's bounding rect |
1548 | local_bounding_rect = child_bounding_rect; | 1548 | local_bounding_rect = child_bounding_rect; |
@@ -1550,7 +1550,7 @@ void LLView::updateBoundingRect() | |||
1550 | else | 1550 | else |
1551 | { | 1551 | { |
1552 | // accumulate non-null children rectangles | 1552 | // accumulate non-null children rectangles |
1553 | if (!child_bounding_rect.isNull()) | 1553 | if (!child_bounding_rect.isEmpty()) |
1554 | { | 1554 | { |
1555 | local_bounding_rect.unionWith(child_bounding_rect); | 1555 | local_bounding_rect.unionWith(child_bounding_rect); |
1556 | } | 1556 | } |
diff --git a/linden/indra/newview/llviewerwindow.cpp b/linden/indra/newview/llviewerwindow.cpp index f4b738f..5cd730a 100644 --- a/linden/indra/newview/llviewerwindow.cpp +++ b/linden/indra/newview/llviewerwindow.cpp | |||
@@ -2817,7 +2817,7 @@ BOOL LLViewerWindow::handlePerFrameHover() | |||
2817 | // snap floaters to top of chat bar/button strip | 2817 | // snap floaters to top of chat bar/button strip |
2818 | LLView* chatbar_and_buttons = gOverlayBar->getChild<LLView>("chatbar_and_buttons", TRUE); | 2818 | LLView* chatbar_and_buttons = gOverlayBar->getChild<LLView>("chatbar_and_buttons", TRUE); |
2819 | // find top of chatbar and state buttons, if either are visible | 2819 | // find top of chatbar and state buttons, if either are visible |
2820 | if (chatbar_and_buttons && !chatbar_and_buttons->getLocalBoundingRect().isNull()) | 2820 | if (chatbar_and_buttons && !chatbar_and_buttons->getLocalBoundingRect().isEmpty()) |
2821 | { | 2821 | { |
2822 | // convert top/left corner of chatbar/buttons container to gFloaterView-relative coordinates | 2822 | // convert top/left corner of chatbar/buttons container to gFloaterView-relative coordinates |
2823 | S32 top, left; | 2823 | S32 top, left; |