fixed visual bugs
This commit is contained in:
@@ -85,12 +85,12 @@ Result(bool) start_screen(Array(char) username_buf, Array(char) password_buf,
|
|||||||
|
|
||||||
while(tim_run(FPS)){
|
while(tim_run(FPS)){
|
||||||
tim_fill(tim_cell(" ", ctx.style_default.fg, ctx.style_default.bg), 0, 0, A, A);
|
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);
|
tim_scroll(&scroll_list, 1, 1, ~1, ~1, ctx.style_default);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(ctx.err_msg){
|
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("ERROR: ", A, below_scroll, A, A, ctx.style_error);
|
||||||
tim_label(ctx.err_msg, A, below_scroll + 1, A, A, ctx.style_error);
|
tim_label(ctx.err_msg, A, below_scroll + 1, A, A, ctx.style_error);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ str validateUsername_str(str username){
|
|||||||
if(username.len < USERNAME_SIZE_MIN || username.len > USERNAME_SIZE_MAX){
|
if(username.len < USERNAME_SIZE_MIN || username.len > USERNAME_SIZE_MAX){
|
||||||
return str_from_cstr(
|
return str_from_cstr(
|
||||||
sprintf_malloc(
|
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
|
USERNAME_SIZE_MIN, USERNAME_SIZE_MAX
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user