aboutsummaryrefslogtreecommitdiff
path: root/Source/LoadMenu.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/LoadMenu.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/LoadMenu.c')
-rw-r--r--Source/LoadMenu.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/Source/LoadMenu.c b/Source/LoadMenu.c
index f983030..e5e67bc 100644
--- a/Source/LoadMenu.c
+++ b/Source/LoadMenu.c
@@ -262,21 +262,16 @@ void ISR_LoadMenuVBlank(void)
SystemIncreaseGlobalTimer();
- if ( (SystemIsBusy() != false)
+ if ( (SystemIsBusy())
||
- (GfxIsGPUBusy() != false)
+ (GfxIsGPUBusy())
||
- (SerialIsBusy() != false) )
+ (SerialIsBusy()) )
{
return;
}
- /*if ( (SystemIsBusy() != false) || (GfxIsGPUBusy() != false) || (SerialIsBusy() != false) )
- {
- return;
- }*/
-
- if (startup_flag != false)
+ if (startup_flag)
{
// "Loading..." text
if (LoadMenuTitleSpr.r < LOADING_TITLE_LUMINANCE_TARGET)
@@ -334,7 +329,7 @@ void ISR_LoadMenuVBlank(void)
}
}
- else if (end_flag != false)
+ else if (end_flag)
{
LoadMenuTitleSpr.r -= LOADING_TITLE_LUMINANCE_STEP;
LoadMenuTitleSpr.g -= LOADING_TITLE_LUMINANCE_STEP;