From 3b80f74ce10cfd7e55199dcb9a8c4b80598227d2 Mon Sep 17 00:00:00 2001 From: Xavier ASUS Date: Fri, 23 Nov 2018 13:57:38 +0100 Subject: Optimization flag changed from -Os to -O3 (seems to perform better FPS-wise). Improved const-correctness and scope for some variables. --- Source/System.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Source/System.c') 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, -- cgit v1.2.3