From 0f4c6895457b41c5129dfe651e8bdb1383847be8 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Fri, 4 Dec 2015 19:34:45 -1000 Subject: [PATCH] Fixed pixel nit-picks --- specter/lib/SplitView.cpp | 2 ++ specter/lib/Toolbar.cpp | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/specter/lib/SplitView.cpp b/specter/lib/SplitView.cpp index 77336fdbb..70ccceec4 100644 --- a/specter/lib/SplitView.cpp +++ b/specter/lib/SplitView.cpp @@ -234,6 +234,7 @@ void SplitView::resized(const boo::SWindowRect& root, const boo::SWindowRect& su ssub.size[1] = sub.size[1] - ssub.size[1]; if (m_views[1].m_view) m_views[1].m_view->resized(root, ssub); + ssub.location[1] -= 1; m_splitBlock.setViewRect(root, ssub); 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]; if (m_views[1].m_view) m_views[1].m_view->resized(root, ssub); + ssub.location[0] -= 1; m_splitBlock.setViewRect(root, ssub); setVerticalVerts(ssub.size[1]); } diff --git a/specter/lib/Toolbar.cpp b/specter/lib/Toolbar.cpp index f959b32c1..044e59c59 100644 --- a/specter/lib/Toolbar.cpp +++ b/specter/lib/Toolbar.cpp @@ -65,7 +65,7 @@ void Toolbar::mouseDown(const boo::SWindowCoord& coord, boo::EMouseButton button childRect.size[0] = c.m_view->nominalWidth(); childRect.size[1] = c.m_view->nominalHeight(); 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 (!c.m_mouseDown) @@ -99,7 +99,7 @@ void Toolbar::mouseMove(const boo::SWindowCoord& coord) childRect.size[0] = c.m_view->nominalWidth(); childRect.size[1] = c.m_view->nominalHeight(); 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 (!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[1] = c.m_view->nominalHeight(); 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); childRect.location[0] += childRect.size[0]; }