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/System.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/System.c')
| -rw-r--r-- | Source/System.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/System.c b/Source/System.c index d17a704..5295e46 100644 --- a/Source/System.c +++ b/Source/System.c @@ -234,7 +234,7 @@ bool SystemRefreshNeeded(void) * *******************************************************************/ void ISR_SystemDefaultVBlank(void) { - if (System1SecondTick() != false) + if (System1SecondTick()) { fps = temp_fps; temp_fps = 0; @@ -454,7 +454,7 @@ void SystemRunTimers(void) * *******************************************************************************/ void SystemCheckTimer(bool* timer, uint64_t* last_timer, uint8_t step) { - if (*timer != false) + if (*timer) { *timer = false; } @@ -489,7 +489,7 @@ bool SystemLoadFileToBuffer(const char* fname, uint8_t* buffer, uint32_t szBuffe int32_t size = 0; // Wait for possible previous operation from the GPU before entering this section. - while ( (SystemIsBusy() != false) || (GfxIsGPUBusy() != false) ); + while ( (SystemIsBusy()) || (GfxIsGPUBusy()) ); SystemDisableRCnt2Interrupt(); @@ -1127,7 +1127,7 @@ void SystemDevMenu(void) DEVMENU_ROOTCNT2_TEXT_Y = DEVMENU_PAD2_RAW_DATA_TEXT_Y + DEVMENU_TEXT_GAP, }; - if (devmenu_flag != false) + if (devmenu_flag) { GsRectangle devMenuBg = { .x = DEVMENU_BG_X, .y = DEVMENU_BG_Y, |
