Some code changes for optimization

This commit is contained in:
spx
2010-03-30 22:37:05 +00:00
parent 99f552bfb5
commit a6f2f01036
17 changed files with 238 additions and 238 deletions

View File

@ -122,7 +122,7 @@ bool CMeterBitmap::HitTest(int x, int y)
int realFrames = (m_FrameCount / (m_TransitionFrameCount + 1));
do
{
numOfNums ++;
++numOfNums;
if (realFrames == 1)
{
tmpValue /= 2;
@ -306,7 +306,7 @@ bool CMeterBitmap::Draw(Graphics& graphics)
{
do
{
numOfNums ++;
++numOfNums;
if (m_FrameCount == 1)
{
tmpValue /= 2;
@ -388,7 +388,7 @@ bool CMeterBitmap::Draw(Graphics& graphics)
value /= realFrames;
transitionValue /= realFrames;
}
numOfNums--;
--numOfNums;
} while (numOfNums > 0);
}
else