Whoopsies! Fixed some broken ui logic from first llmath merge.
This commit is contained in:
@@ -1910,7 +1910,7 @@ LLRect LLFloaterView::findNeighboringPosition( LLFloater* reference_floater, LLF
|
||||
if (sibling &&
|
||||
sibling != neighbor &&
|
||||
sibling->getVisible() &&
|
||||
expanded_base_rect.contains(sibling->getRect()))
|
||||
expanded_base_rect.overlaps(sibling->getRect()))
|
||||
{
|
||||
base_rect.unionWith(sibling->getRect());
|
||||
}
|
||||
|
||||
@@ -1355,7 +1355,7 @@ void LLView::draw()
|
||||
{
|
||||
// Only draw views that are within the root view
|
||||
localRectToScreen(viewp->getRect(),&screenRect);
|
||||
if ( rootRect.contains(screenRect) )
|
||||
if ( rootRect.overlaps(screenRect) )
|
||||
{
|
||||
glMatrixMode(GL_MODELVIEW);
|
||||
LLUI::pushMatrix();
|
||||
|
||||
@@ -1049,7 +1049,7 @@ void LLHUDText::updateAll()
|
||||
{
|
||||
continue;
|
||||
}
|
||||
if (src_textp->mSoftScreenRect.contains(dst_textp->mSoftScreenRect))
|
||||
if (src_textp->mSoftScreenRect.overlaps(dst_textp->mSoftScreenRect))
|
||||
{
|
||||
LLRectf intersect_rect = src_textp->mSoftScreenRect;
|
||||
intersect_rect.intersectWith(dst_textp->mSoftScreenRect);
|
||||
|
||||
Reference in New Issue
Block a user