From 8cbc3e3bf318ca7b1d2ee6483f6db07ef5ea7a07 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 18 Feb 2012 01:09:12 +0100 Subject: [PATCH] If we do not have a short title, use the long one in the top 10 score list even if it is too wise. --- bigscreen/top10scorescreen.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.39.2