return true;
if (!scores_changed.get_flag())
return false;
+ scores_changed.reset_flag();
bool needs_update;
conn.perform(FetchNeedsUpdate(last_updated, tournament, round, parallel, &needs_update));
- if (!needs_update)
- scores_changed.reset_flag();
-
+ valid = !needs_update;
return needs_update;
}
for (unsigned i = 0; i <= num_scores + 2; ++i)
sumcolwidth += colwidth[i] + 20;
- if (sumcolwidth < 780)
+ if (sumcolwidth < LOGICAL_SCREEN_WIDTH - 20)
break;
if (mode == 0) {
* If we have space to go, distribute as much as we can to the chosen song column, so we won't have
* total and rank jumping around.
*/
- if (sumcolwidth < 780) {
+ if (sumcolwidth < LOGICAL_SCREEN_WIDTH - 20) {
int first_chosen_col = -1;
unsigned col = 1;
}
if (first_chosen_col != -1) {
- colwidth[first_chosen_col] += 780 - sumcolwidth;
+ colwidth[first_chosen_col] += LOGICAL_SCREEN_WIDTH - 20 - sumcolwidth;
}
}
}