From: borg323 <4010067-borg323@users.noreply.gitlab.com> Date: Fri, 12 Jul 2019 14:43:16 +0000 (+0300) Subject: Fix @print_table in non-V6 lower window X-Git-Url: https://scope-eye.net/git/?a=commitdiff_plain;h=02ad29f8cae0a7592484c7dba45787b46e93a63d;p=liskon_frotz.git Fix @print_table in non-V6 lower window This is a direct port of commit 7adcf62693ecfc8439260a7abe62c3d5a190c160 from Windows-Frotz: https://github.com/DavidKinder/Windows-Frotz/commit/7adcf62693ecfc8439260a7abe62c3d5a190c160 --- diff --git a/src/common/screen.c b/src/common/screen.c index 51a6473..6a8fe9f 100644 --- a/src/common/screen.c +++ b/src/common/screen.c @@ -1239,13 +1239,20 @@ void z_print_table (void) if (i != 0) { - flush_buffer (); - os_font_data(0, &font_height, &font_width); - cwp->y_cursor += font_height; - cwp->x_cursor = x; + if (h_version != V6 && cwin == 0) { - update_cursor (); + new_line (); + + } else { + + flush_buffer (); + os_font_data(0, &font_height, &font_width); + cwp->y_cursor += font_height; + cwp->x_cursor = x; + update_cursor (); + + } } for (j = 0; j < zargs[1]; j++) {