From 017bba8869f9f5b82a176cd6596326718b98bbe0 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 10 Nov 2022 21:27:49 +0900 Subject: [PATCH] [client] Fix some view placement and buffer sizes --- libs/client/sbar.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/libs/client/sbar.c b/libs/client/sbar.c index 08ee8df8b..42c2dd118 100644 --- a/libs/client/sbar.c +++ b/libs/client/sbar.c @@ -1787,7 +1787,7 @@ draw_fps (view_t view) fps_count = 0; lastframetime = t; int prec = lastfps < 1000 ? 1 : 0; - snprintf (st, sizeof (st), "%5.*f FPS", prec, lastfps); + snprintf (st, sizeof (st), "%6.*f FPS", prec, lastfps); } write_charbuff (fps_buff, 0, 0, st); } @@ -2646,14 +2646,14 @@ init_views (void) { hud_stuff_view = sbar_view (0, 48, 152, 16, grav_southwest, cl_screen_view); hud_time_view = sbar_view (8, 0, 64, 8, grav_northwest, hud_stuff_view); - hud_fps_view = sbar_view (80, 0, 72, 8, grav_northwest, hud_stuff_view); - hud_ping_view = sbar_view (0, 0, 48, 0, grav_northwest, hud_stuff_view); - hud_pl_view = sbar_view (56, 0, 72, 0, grav_northwest, hud_stuff_view); + hud_fps_view = sbar_view (80, 0, 80, 8, grav_northwest, hud_stuff_view); + hud_ping_view = sbar_view (0, 8, 48, 0, grav_northwest, hud_stuff_view); + hud_pl_view = sbar_view (56, 8, 48, 0, grav_northwest, hud_stuff_view); time_buff = Draw_CreateBuffer (8, 1); - fps_buff = Draw_CreateBuffer (11, 1); - ping_buff = Draw_CreateBuffer (11, 1); - pl_buff = Draw_CreateBuffer (11, 1); + fps_buff = Draw_CreateBuffer (10, 1); + ping_buff = Draw_CreateBuffer (6, 1); + pl_buff = Draw_CreateBuffer (6, 1); for (int i = 0; i < MAX_PLAYERS; i++) { sb_fph[i] = Draw_CreateBuffer (3, 1); sb_time[i] = Draw_CreateBuffer (4, 1);