OSD - Always use specifically named stats refresh phases in.

This commit is contained in:
Dominic Clifton 2022-01-23 15:29:15 +01:00
parent e0f27197ff
commit 023a7e5b00
1 changed files with 3 additions and 3 deletions

View File

@ -965,7 +965,7 @@ static bool osdRefreshStats(void)
if (osdStatsRenderingState.rowCount > 0) {
phase = RENDER_STATS;
} else {
phase++;
phase = COUNT_STATS;
}
displayClearScreen(osdDisplayPort, DISPLAY_CLEAR_NONE);
break;
@ -975,7 +975,7 @@ static bool osdRefreshStats(void)
// Go through the logic one time to determine how many stats are actually displayed.
bool count_phase_complete = osdRenderStatsContinue();
if (count_phase_complete) {
phase++;
phase = CLEAR_SCREEN;
}
break;
}
@ -984,7 +984,7 @@ static bool osdRefreshStats(void)
// Then clear the screen and commence with normal stats display which will
// determine if the heading should be displayed and also center the content vertically.
displayClearScreen(osdDisplayPort, DISPLAY_CLEAR_NONE);
phase++;
phase = RENDER_STATS;
break;
case RENDER_STATS:
completed = osdRenderStatsContinue();