diff options
| author | Xavier ASUS <xavi92psx@gmail.com> | 2018-11-23 13:57:38 +0100 |
|---|---|---|
| committer | Xavier ASUS <xavi92psx@gmail.com> | 2018-11-23 13:57:38 +0100 |
| commit | 3b80f74ce10cfd7e55199dcb9a8c4b80598227d2 (patch) | |
| tree | 43d267ff02ef9c04b60305adead701de8c5a1fa5 /Source/LoadMenu.c | |
| parent | a923f153f906144de599024148fc868e234d06cd (diff) | |
| download | airport-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.c | 15 |
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; |
