From: Steinar H. Gunderson Date: Sat, 19 Feb 2005 19:10:30 +0000 (+0000) Subject: Make the score font a lot bigger. X-Git-Url: https://git.sesse.net/?p=ccbs;a=commitdiff_plain;h=c9af9704672c1ee6eeb679ab2ddb0b2de00c2762 Make the score font a lot bigger. --- diff --git a/bigscreen/groupscreen.cpp b/bigscreen/groupscreen.cpp index 008379b..5e448ac 100644 --- a/bigscreen/groupscreen.cpp +++ b/bigscreen/groupscreen.cpp @@ -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::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::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::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;