// make column headings from the first player's songs
unsigned col = 1, x = 40 + width[0];
for (std::vector<Score>::const_iterator i = group.players[0].scores.begin(); i != group.players[0].scores.end(); ++i, ++col) {
- if (!i->chosen)
- my_draw_text(i->song.title, buf, 12.0, x, 30);
+ if (!i->chosen) {
+ unsigned this_width = my_draw_text(i->song.title, NULL, 12.0);
+ my_draw_text(i->song.title, buf, 12.0, x + width[col] / 2 - this_width / 2, 30);
+ }
x += width[col] + 20;
}