Make the score font a lot bigger.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 19 Feb 2005 19:10:30 +0000 (19:10 +0000)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 19 Feb 2005 19:10:30 +0000 (19:10 +0000)
bigscreen/groupscreen.cpp

index 008379b..5e448ac 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;