summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2022-02-08 07:05:43 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2022-02-08 07:05:43 +0200
commit84c25733fc847e9488579834d86c1d41a48c89ce (patch)
tree99164fde9dd56258eb20ff7ca4fc278645dacd52
parent9c40f9045bcd40ee04bc78689babc7cc4d7bde59 (diff)
App: Cleanup
-rw-r--r--src/app.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/app.c b/src/app.c
index b7d43192..891f5d6e 100644
--- a/src/app.c
+++ b/src/app.c
@@ -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
1263static iBool nextEvent_App_(iApp *d, enum iAppEventMode eventMode, SDL_Event *event) { 1263static iBool nextEvent_App_(iApp *d, enum iAppEventMode eventMode, SDL_Event *event) {
@@ -1664,7 +1664,8 @@ void refresh_App(void) {
1664} 1664}
1665 1665
1666iBool isRefreshPending_App(void) { 1666iBool 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
1670iBool isFinishedLaunching_App(void) { 1671iBool isFinishedLaunching_App(void) {