Fixed pixel nit-picks

This commit is contained in:
Jack Andersen 2015-12-04 19:34:45 -10:00
parent b7a1ea6251
commit 0f4c689545
2 changed files with 5 additions and 3 deletions

View File

@ -234,6 +234,7 @@ void SplitView::resized(const boo::SWindowRect& root, const boo::SWindowRect& su
ssub.size[1] = sub.size[1] - ssub.size[1]; ssub.size[1] = sub.size[1] - ssub.size[1];
if (m_views[1].m_view) if (m_views[1].m_view)
m_views[1].m_view->resized(root, ssub); m_views[1].m_view->resized(root, ssub);
ssub.location[1] -= 1;
m_splitBlock.setViewRect(root, ssub); m_splitBlock.setViewRect(root, ssub);
setHorizontalVerts(ssub.size[0]); setHorizontalVerts(ssub.size[0]);
} }
@ -247,6 +248,7 @@ void SplitView::resized(const boo::SWindowRect& root, const boo::SWindowRect& su
ssub.size[0] = sub.size[0] - ssub.size[0]; ssub.size[0] = sub.size[0] - ssub.size[0];
if (m_views[1].m_view) if (m_views[1].m_view)
m_views[1].m_view->resized(root, ssub); m_views[1].m_view->resized(root, ssub);
ssub.location[0] -= 1;
m_splitBlock.setViewRect(root, ssub); m_splitBlock.setViewRect(root, ssub);
setVerticalVerts(ssub.size[1]); setVerticalVerts(ssub.size[1]);
} }

View File

@ -65,7 +65,7 @@ void Toolbar::mouseDown(const boo::SWindowCoord& coord, boo::EMouseButton button
childRect.size[0] = c.m_view->nominalWidth(); childRect.size[0] = c.m_view->nominalWidth();
childRect.size[1] = c.m_view->nominalHeight(); childRect.size[1] = c.m_view->nominalHeight();
childRect.location[0] += m_padding; childRect.location[0] += m_padding;
childRect.location[1] = subLoc1 + (m_gauge - childRect.size[1]) / 2; childRect.location[1] = subLoc1 + (m_gauge - childRect.size[1]) / 2 - 1;
if (childRect.coordInRect(coord)) if (childRect.coordInRect(coord))
{ {
if (!c.m_mouseDown) if (!c.m_mouseDown)
@ -99,7 +99,7 @@ void Toolbar::mouseMove(const boo::SWindowCoord& coord)
childRect.size[0] = c.m_view->nominalWidth(); childRect.size[0] = c.m_view->nominalWidth();
childRect.size[1] = c.m_view->nominalHeight(); childRect.size[1] = c.m_view->nominalHeight();
childRect.location[0] += m_padding; childRect.location[0] += m_padding;
childRect.location[1] = subLoc1 + (m_gauge - childRect.size[1]) / 2; childRect.location[1] = subLoc1 + (m_gauge - childRect.size[1]) / 2 - 1;
if (childRect.coordInRect(coord)) if (childRect.coordInRect(coord))
{ {
if (!c.m_mouseIn) if (!c.m_mouseIn)
@ -159,7 +159,7 @@ void Toolbar::resized(const boo::SWindowRect& root, const boo::SWindowRect& sub)
childRect.size[0] = c.m_view->nominalWidth(); childRect.size[0] = c.m_view->nominalWidth();
childRect.size[1] = c.m_view->nominalHeight(); childRect.size[1] = c.m_view->nominalHeight();
childRect.location[0] += m_padding; childRect.location[0] += m_padding;
childRect.location[1] = sub.location[1] + (m_gauge - childRect.size[1]) / 2; childRect.location[1] = sub.location[1] + (m_gauge - childRect.size[1]) / 2 - 1;
c.m_view->resized(root, childRect); c.m_view->resized(root, childRect);
childRect.location[0] += childRect.size[0]; childRect.location[0] += childRect.size[0];
} }