From: Steinar H. Gunderson Date: Sat, 18 Feb 2012 00:09:12 +0000 (+0100) Subject: If we do not have a short title, use the long one in the top 10 score list even if... X-Git-Url: https://git.sesse.net/?p=ccbs;a=commitdiff_plain;h=8cbc3e3bf318ca7b1d2ee6483f6db07ef5ea7a07 If we do not have a short title, use the long one in the top 10 score list even if it is too wise. --- 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);