From: rodin Date: Sat, 14 Nov 2009 16:39:14 +0000 (+0000) Subject: Fixed resize bug X-Git-Tag: v0.9~306 X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=3e6242ffce4e67eb1c08f68feb57a31b79d51524;hp=22ea0961a715ac91addb222a54300c3554a09e48;p=projects%2Fchimara%2Fchimara.git Fixed resize bug --- diff --git a/interpreters/frotz/glkscreen.c b/interpreters/frotz/glkscreen.c index 2773c07..37ef562 100644 --- a/interpreters/frotz/glkscreen.c +++ b/interpreters/frotz/glkscreen.c @@ -305,13 +305,6 @@ void screen_char (zchar c) return; } - if (gos_upper && gos_curwin == gos_upper) { - if (cury > mach_status_ht) { - mach_status_ht = cury; - reset_status_ht(); - } - } - /* check fixed flag in header, game can change it at whim */ if (gos_curwin == gos_lower) { @@ -583,8 +576,15 @@ void z_set_cursor (void) { cury = zargs[0]; curx = zargs[1]; - if (gos_upper) + + if (gos_upper) { + if (cury > mach_status_ht) { + mach_status_ht = cury; + reset_status_ht(); + } + glk_window_move_cursor(gos_upper, curx - 1, cury - 1); + } } /*