X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=bigscreen%2Fgroupscreen.cpp;h=ff8cbace21439de9f30bf83844f0c2c7e023d3f8;hb=6cd673299df1e8eaabdf6e538b19dc617514c82a;hp=09c4389d17166848e3bb1c378aac900ceb5807f0;hpb=013a49ad36808700c2c3a12445c7c713a1b0b8b8;p=ccbs diff --git a/bigscreen/groupscreen.cpp b/bigscreen/groupscreen.cpp index 09c4389..ff8cbac 100644 --- a/bigscreen/groupscreen.cpp +++ b/bigscreen/groupscreen.cpp @@ -44,7 +44,7 @@ void GroupScreen::draw(unsigned char *buf) width[col] = std::max(width[col], my_draw_text(j->song.title, NULL, 12.0) + max_num_width + 10); } else { - width[col] = std::max(width[col], my_draw_text(j->song.title, NULL, 12.0)); + width[col] = std::max(width[col], my_draw_text(j->song.short_title, NULL, 12.0)); width[col] = std::max(width[col], max_num_width); } } @@ -54,8 +54,8 @@ void GroupScreen::draw(unsigned char *buf) unsigned col = 1, x = 40 + width[0]; for (std::vector::const_iterator i = group.players[0].scores.begin(); i != group.players[0].scores.end(); ++i, ++col) { 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); + unsigned this_width = my_draw_text(i->song.short_title, NULL, 12.0); + my_draw_text(i->song.short_title, buf, 12.0, x + width[col] / 2 - this_width / 2, 30); } x += width[col] + 20; }