]> git.sesse.net Git - ccbs/commitdiff
If we do not have a short title, use the long one in the top 10 score list even if...
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 18 Feb 2012 00:09:12 +0000 (01:09 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 18 Feb 2012 00:09:12 +0000 (01:09 +0100)
bigscreen/top10scorescreen.cpp

index 5e71bdd15704bf85b89b3d0b42b21f77425c02b0..b687698884634b9fb5f2592fefd1cde4ab2cddc3 100644 (file)
@@ -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);