From fba7c06fd63cfde58acbaf3f901f8f8582ffb5e0 Mon Sep 17 00:00:00 2001 From: nhmall Date: Mon, 14 May 2018 21:09:01 -0400 Subject: [PATCH] put back the functionality of commandline --debug:immediateflips overwritten recently --- sys/winnt/nttty.c | 8 +++----- sys/winnt/stubs.c | 1 + 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/sys/winnt/nttty.c b/sys/winnt/nttty.c index 6dfb77471..9b26a5e3f 100644 --- a/sys/winnt/nttty.c +++ b/sys/winnt/nttty.c @@ -206,8 +206,6 @@ keyboard_handler_t keyboard_handler; /* Console buffer flipping support */ -boolean do_immediate_flips = FALSE; - static void back_buffer_flip() { cell_t * back = console.back_buffer; @@ -250,7 +248,7 @@ void buffer_fill_to_end(cell_t * buffer, cell_t * fill, int x, int y) while (dst != sentinel) *dst++ = *fill; - if (do_immediate_flips && buffer == console.back_buffer) + if (iflags.debug.immediateflips && buffer == console.back_buffer) back_buffer_flip(); } @@ -265,7 +263,7 @@ static void buffer_clear_to_end_of_line(cell_t * buffer, int x, int y) while (dst != sentinel) *dst++ = clear_cell; - if (do_immediate_flips) + if (iflags.debug.immediateflips) back_buffer_flip(); } @@ -277,7 +275,7 @@ void buffer_write(cell_t * buffer, cell_t * cell, COORD pos) cell_t * dst = buffer + (console.width * pos.Y) + pos.X; *dst = *cell; - if (do_immediate_flips && buffer == console.back_buffer) + if (iflags.debug.immediateflips && buffer == console.back_buffer) back_buffer_flip(); } diff --git a/sys/winnt/stubs.c b/sys/winnt/stubs.c index 469a0bdb2..ef161ae9b 100644 --- a/sys/winnt/stubs.c +++ b/sys/winnt/stubs.c @@ -179,5 +179,6 @@ nethack_enter_nttty() void set_altkeyhandler(const char *inName) { + return; } #endif /* TTYSTUBS */