- Removed unneeded NULL checks.
- Other code tweaks and cleanups.
This commit is contained in:
spx
2011-11-08 10:32:57 +00:00
parent 10f7504b86
commit a209bf15d0
17 changed files with 242 additions and 258 deletions

View File

@ -131,7 +131,8 @@ bool CMeterBitmap::HitTest(int x, int y)
{
tmpValue /= realFrames;
}
} while (tmpValue > 0);
}
while (tmpValue > 0);
}
Rect rect(GetX(), GetY(), m_W * numOfNums + (numOfNums - 1) * m_Separation, m_H);
@ -332,7 +333,8 @@ bool CMeterBitmap::Draw(Graphics& graphics)
{
tmpValue /= m_FrameCount;
}
} while (tmpValue > 0);
}
while (tmpValue > 0);
}
// Blit the images
@ -407,7 +409,8 @@ bool CMeterBitmap::Draw(Graphics& graphics)
transitionValue /= realFrames;
}
--numOfNums;
} while (numOfNums > 0);
}
while (numOfNums > 0);
}
else
{