Code cleanup

This commit is contained in:
spx
2012-12-27 16:47:44 +09:00
parent 47e130a6ff
commit 5576f7d5a0
2 changed files with 54 additions and 60 deletions

View File

@ -438,23 +438,29 @@ bool CMeterHistogram::Draw(Graphics& graphics)
int endValue = -1; //(should be 0, but need to simulate <=)
// GraphStart=Left, GraphOrientation=Vertical
if (m_GraphStartLeft && !m_GraphHorizontalOrientation)
if (!m_GraphHorizontalOrientation)
{
startValue = m_W - 1;
endValueLHS = &endValue;
endValueRHS = &i;
step = -1;
if (m_GraphStartLeft)
{
startValue = m_W - 1;
endValueLHS = &endValue;
endValueRHS = &i;
step = -1;
}
}
else if (m_GraphHorizontalOrientation && !m_Flip)
else
{
endValueRHS = &m_H;
}
else if (m_GraphHorizontalOrientation && m_Flip)
{
startValue = m_H - 1;
endValueLHS = &endValue;
endValueRHS = &i;
step = -1;
if (!m_Flip)
{
endValueRHS = &m_H;
}
else
{
startValue = m_H - 1;
endValueLHS = &endValue;
endValueRHS = &i;
step = -1;
}
}
// Horizontal or Vertical graph