aboutsummaryrefslogtreecommitdiff
path: root/Source/EndAnimation.c
diff options
context:
space:
mode:
authorXavier ASUS <xavi92psx@gmail.com>2018-11-23 13:57:38 +0100
committerXavier ASUS <xavi92psx@gmail.com>2018-11-23 13:57:38 +0100
commit3b80f74ce10cfd7e55199dcb9a8c4b80598227d2 (patch)
tree43d267ff02ef9c04b60305adead701de8c5a1fa5 /Source/EndAnimation.c
parenta923f153f906144de599024148fc868e234d06cd (diff)
downloadairport-3b80f74ce10cfd7e55199dcb9a8c4b80598227d2.tar.gz
Optimization flag changed from -Os to -O3 (seems to perform better FPS-wise).
Improved const-correctness and scope for some variables.
Diffstat (limited to 'Source/EndAnimation.c')
-rw-r--r--Source/EndAnimation.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/EndAnimation.c b/Source/EndAnimation.c
index 21d23e3..640c6e3 100644
--- a/Source/EndAnimation.c
+++ b/Source/EndAnimation.c
@@ -141,7 +141,7 @@ void EndAnimationLine(void)
rectIndex += END_ANIMATION_LINE_STEP;
- }while (rectIndex <= (X_SCREEN_RESOLUTION >> 1) );
+ } while (rectIndex <= (X_SCREEN_RESOLUTION >> 1) );
}
@@ -177,7 +177,7 @@ void EndAnimationSquares(void)
sqPos[randInd] = true;
sqCounter--;
- while (sqPos[maxIndex] != false)
+ while (sqPos[maxIndex])
{
// Lower maximum value for rand() so that it's
// easier to spot new empty index on next iteration.
@@ -193,7 +193,7 @@ void EndAnimationSquares(void)
break;
}
}
- }while (1);
+ } while (1);
GfxSortSprite(&EndAnimationDisplay);
@@ -201,7 +201,7 @@ void EndAnimationSquares(void)
{
for (j = 0; j < END_ANIMATION_SQUARES_TOTAL ; j++)
{
- if (sqPos[j] != false)
+ if (sqPos[j])
{
EndAnimationRect.x = ((j) << END_ANIMATION_SQUARES_SIZE_BITSHIFT) -
(short)( (j / END_ANIMATION_SQUARES_PER_ROW) *