X-Git-Url: https://git.sesse.net/?p=ccbs;a=blobdiff_plain;f=bigscreen%2Ftop10scorescreen.cpp;fp=bigscreen%2Ftop10scorescreen.cpp;h=b687698884634b9fb5f2592fefd1cde4ab2cddc3;hp=5e71bdd15704bf85b89b3d0b42b21f77425c02b0;hb=8cbc3e3bf318ca7b1d2ee6483f6db07ef5ea7a07;hpb=e919c30db9bc56b9b56668892ec3247696095928 diff --git a/bigscreen/top10scorescreen.cpp b/bigscreen/top10scorescreen.cpp index 5e71bdd..b687698 100644 --- a/bigscreen/top10scorescreen.cpp +++ b/bigscreen/top10scorescreen.cpp @@ -70,7 +70,8 @@ void Top10ScoreScreen::draw(unsigned char *buf, unsigned width, unsigned height) my_draw_text(i->nick, buf, 24.0, 70, y, r, g, b); - if (my_draw_text(i->title, NULL, 24.0) > 320) { + if (my_draw_text(i->title, NULL, 24.0) > 320 && + !i->shorttitle.empty()) { my_draw_text(i->shorttitle, buf, 24.0, 370, y, r, g, b); } else { my_draw_text(i->title, buf, 24.0, 370, y, r, g, b);