]> git.sesse.net Git - ccbs/commitdiff
Don't show column headings for chosen songs, as they are not the same everywhere...
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 19 Feb 2005 18:19:19 +0000 (18:19 +0000)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 19 Feb 2005 18:19:19 +0000 (18:19 +0000)
bigscreen/groupscreen.cpp

index 50d63b2f8ede2f7390076aa4898aa0f15a277f7d..86ff4672e97d58518156d9838dde9b5c73e83020 100644 (file)
@@ -51,7 +51,8 @@ void GroupScreen::draw(unsigned char *buf)
        // make column headings from the first player's songs
        unsigned col = 1, x = 40 + width[0];
        for (std::vector<Score>::const_iterator i = group.players[0].scores.begin(); i != group.players[0].scores.end(); ++i, ++col) {
-               my_draw_text(i->song.title, buf, x, 30, true, 255, 255, 255);
+               if (!i->chosen)
+                       my_draw_text(i->song.title, buf, x, 30, true, 255, 255, 255);
                x += width[col] + 20;
        }