diff options
Diffstat (limited to 'src/app.c')
-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) { |