summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libs/txt/txt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libs/txt/txt.c b/src/libs/txt/txt.c
index f087aeb..883cd3e 100644
--- a/src/libs/txt/txt.c
+++ b/src/libs/txt/txt.c
@@ -43,6 +43,9 @@ static void measure_str(const char *str, int *res_width, int *res_height)
str++;
}
+ if (col > cols)
+ cols = col;
+
*res_height = 1 + rows * (ASCII_HEIGHT + 1);
*res_width = 1 + cols * (ASCII_WIDTH + 1);
}
© All Rights Reserved