// simple headings
my_draw_text("Player", buf, 12.0, PLAYER_X, 100);
my_draw_text("Song", buf, 12.0, SONG_X, 100);
- my_draw_text("Score", buf, 12.0, SCORE_X - 18, 100);
+ width = my_draw_text("Score", NULL, 12.0);
+ my_draw_text("Score", buf, 12.0, SCORE_X - width/2, 100);
unsigned row = 1, y = 140;
for (std::vector<TopScore>::const_iterator i = scores.begin(); i != scores.end(); ++i) {
// simple headings
my_draw_text("Song", buf, 12.0, SONG_X, 100);
- my_draw_text("Frequency", buf, 12.0, FREQUENCY_X - 35, 100);
+ width = my_draw_text("Frequency", NULL, 12.0);
+ my_draw_text("Frequency", buf, 12.0, FREQUENCY_X - width/2, 100);
unsigned row = 1, y = 140;
for (std::vector<TopChosen>::const_iterator i = scores.begin(); i != scores.end(); ++i) {