]> git.sesse.net Git - ccbs/blobdiff - bigscreen/groupscreen.cpp
Make the score font a lot bigger.
[ccbs] / bigscreen / groupscreen.cpp
index 008379bd9e7bec6953361f3aa33eff9136e2fe92..5e448ac12e6a8932624cab35cc0d5c5c3e10dda6 100644 (file)
@@ -33,10 +33,10 @@ void GroupScreen::draw(unsigned char *buf)
        for (unsigned i = 0; i < 16; ++i)
                width[i] = 0;
 
-       unsigned max_num_width = my_draw_text("88888", NULL, 12.0);
+       unsigned max_num_width = my_draw_text("88888", NULL, 22.0);
 
        for (std::vector<Player>::const_iterator i = group.players.begin(); i != group.players.end(); ++i) {
-               width[0] = std::max(width[0], my_draw_text(i->nick, NULL, 12.0));
+               width[0] = std::max(width[0], my_draw_text(i->nick, NULL, 18.0));
 
                unsigned col = 1;
                for (std::vector<Score>::const_iterator j = i->scores.begin(); j != i->scores.end(); ++j, ++col) {
@@ -59,9 +59,9 @@ void GroupScreen::draw(unsigned char *buf)
        }
        
        // show all the players and the scores
-       unsigned y = 50;
+       unsigned y = 70;
        for (std::vector<Player>::const_iterator i = group.players.begin(); i != group.players.end(); ++i) {
-               my_draw_text(i->nick, buf, 12.0, 20, y);
+               my_draw_text(i->nick, buf, 18.0, 20, y);
 
                unsigned x = 40 + width[0];
 
@@ -70,21 +70,21 @@ void GroupScreen::draw(unsigned char *buf)
                        char text[16];
                        sprintf(text, "%u", j->score);
        
-                       unsigned this_width = my_draw_text(text, NULL, 12.0);
+                       unsigned this_width = my_draw_text(text, NULL, 22.0);
                        if (j->chosen) {
                                if (j->score != -1) {
-                                       my_draw_text(text, buf, 12.0, x + max_num_width - this_width, y);
+                                       my_draw_text(text, buf, 22.0, x + max_num_width - this_width, y);
                                }
                                my_draw_text(j->song.title, buf, 12.0, x + max_num_width + 10, y);
                        } else {
                                if (j->score != -1) {
-                                       my_draw_text(text, buf, 12.0, x + width[col] / 2 - this_width / 2, y);
+                                       my_draw_text(text, buf, 22.0, x + width[col] / 2 - this_width / 2, y);
                                }
                        }
                        x += width[col] + 20;
                }
 
-               y += 20;
+               y += 40;
        }
        
        valid = true;