From 4956d0de317e2b660c857bd769777dd4789580a2 Mon Sep 17 00:00:00 2001 From: mibi88 Date: Tue, 11 Jul 2023 23:32:09 +0200 Subject: [PATCH] Fixed a displaying bug (thanks Slyvtt !) --- src/dialogs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dialogs.c b/src/dialogs.c index 055c341..fa93bdb 100644 --- a/src/dialogs.c +++ b/src/dialogs.c @@ -12,7 +12,7 @@ void showtext(Game *game, bopti_image_t *face, char *text) { dfont(&FONT_USED); unsigned int i, n, y = 1, l = 0; int line_max_chars; - unsigned int max_lines_amount = BOX_HEIGHT/FONT_USED.line_height; + unsigned int max_lines_amount = (BOX_HEIGHT-1)/FONT_USED.line_height; const char *c; /* Run a little fancy animation. */ for(i=0;i