X-Git-Url: https://git.sesse.net/?p=ccbs;a=blobdiff_plain;f=bigscreen%2Ftop5chosenscreen.cpp;fp=bigscreen%2Ftop5chosenscreen.cpp;h=5d2e9dc947bbe421897a65e4f2e5d5fda3f1e660;hp=702b24fdab551d5e2e8665abfde40c65b8b1f0d4;hb=07c1b0a88317b59f0deee5ad5d3e4febd423acbc;hpb=6bd21f38c6a860ba75ea98f2404c83d9bd55498a diff --git a/bigscreen/top5chosenscreen.cpp b/bigscreen/top5chosenscreen.cpp index 702b24f..5d2e9dc 100644 --- a/bigscreen/top5chosenscreen.cpp +++ b/bigscreen/top5chosenscreen.cpp @@ -58,7 +58,8 @@ void Top5ChosenScreen::draw(unsigned char *buf, unsigned width, unsigned height) // 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::const_iterator i = scores.begin(); i != scores.end(); ++i) {