From b081e52d6e3b1e15445e74313f89576220bc191e Mon Sep 17 00:00:00 2001 From: Timerix Date: Mon, 12 Jan 2026 23:06:00 +0500 Subject: [PATCH] fixed visual bugs --- src/cli/ClientCLI/start_screen.c | 4 ++-- src/network/tcp-chat-protocol/v1.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cli/ClientCLI/start_screen.c b/src/cli/ClientCLI/start_screen.c index f418ba6..0789cec 100644 --- a/src/cli/ClientCLI/start_screen.c +++ b/src/cli/ClientCLI/start_screen.c @@ -85,12 +85,12 @@ Result(bool) start_screen(Array(char) username_buf, Array(char) password_buf, while(tim_run(FPS)){ tim_fill(tim_cell(" ", ctx.style_default.fg, ctx.style_default.bg), 0, 0, A, A); - tim_scope(A, A, 40, 14) { + tim_scope(A, A, 40, 13) { tim_scroll(&scroll_list, 1, 1, ~1, ~1, ctx.style_default); } if(ctx.err_msg){ - i32 below_scroll = tim->scopes[tim->scope].h/2 + 7; + i32 below_scroll = tim->scopes[tim->scope].h/2 + 6; tim_label("ERROR: ", A, below_scroll, A, A, ctx.style_error); tim_label(ctx.err_msg, A, below_scroll + 1, A, A, ctx.style_error); } diff --git a/src/network/tcp-chat-protocol/v1.c b/src/network/tcp-chat-protocol/v1.c index 1621244..6192727 100644 --- a/src/network/tcp-chat-protocol/v1.c +++ b/src/network/tcp-chat-protocol/v1.c @@ -19,7 +19,7 @@ str validateUsername_str(str username){ if(username.len < USERNAME_SIZE_MIN || username.len > USERNAME_SIZE_MAX){ return str_from_cstr( sprintf_malloc( - "username length (in bytes) must be >= %i and <= %i\n", + "username length (in bytes) must be >= %i and <= %i", USERNAME_SIZE_MIN, USERNAME_SIZE_MAX ) );