diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2022-02-08 07:05:43 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2022-02-08 07:05:43 +0200 |
commit | 84c25733fc847e9488579834d86c1d41a48c89ce (patch) | |
tree | 99164fde9dd56258eb20ff7ca4fc278645dacd52 | |
parent | 9c40f9045bcd40ee04bc78689babc7cc4d7bde59 (diff) |
App: Cleanup
-rw-r--r-- | src/app.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1257,7 +1257,7 @@ iLocalDef iBool isWaitingAllowed_App_(iApp *d) { | |||
1257 | return iFalse; | 1257 | return iFalse; |
1258 | } | 1258 | } |
1259 | #endif | 1259 | #endif |
1260 | return !value_Atomic(&d->pendingRefresh) && isEmpty_SortedArray(&d->tickers); | 1260 | return !isRefreshPending_App(); |
1261 | } | 1261 | } |
1262 | 1262 | ||
1263 | static iBool nextEvent_App_(iApp *d, enum iAppEventMode eventMode, SDL_Event *event) { | 1263 | static iBool nextEvent_App_(iApp *d, enum iAppEventMode eventMode, SDL_Event *event) { |
@@ -1664,7 +1664,8 @@ void refresh_App(void) { | |||
1664 | } | 1664 | } |
1665 | 1665 | ||
1666 | iBool isRefreshPending_App(void) { | 1666 | iBool isRefreshPending_App(void) { |
1667 | return value_Atomic(&app_.pendingRefresh); | 1667 | const iApp *d = &app_; |
1668 | return !isEmpty_SortedArray(&d->tickers) || value_Atomic(&app_.pendingRefresh); | ||
1668 | } | 1669 | } |
1669 | 1670 | ||
1670 | iBool isFinishedLaunching_App(void) { | 1671 | iBool isFinishedLaunching_App(void) { |