From a8c61de576d269b69ba3b293699b834fb82b7831 Mon Sep 17 00:00:00 2001 From: sorgelig Date: Fri, 7 Dec 2018 02:16:37 +0800 Subject: [PATCH] Reset info timer after screen adjustment. --- user_io.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/user_io.cpp b/user_io.cpp index ddabee4..f3c66fd 100644 --- a/user_io.cpp +++ b/user_io.cpp @@ -1456,6 +1456,7 @@ static int coldreset_req = 0; static int adjust_video_mode(uint32_t vtime); static uint32_t show_video_info(int force); +static uint32_t res_timer = 0; void user_io_poll() { @@ -2018,7 +2019,6 @@ void user_io_poll() keyboard_leds = leds; } - static uint32_t res_timer = 0; if (!res_timer) { res_timer = GetTimer(1000); @@ -2126,12 +2126,14 @@ static void send_keycode(unsigned short key, int press) if (code == 0x44) { store_vsize(); + res_timer = 0; return; } if (code == 0x45) { Info("Canceled"); + res_timer = 0; minimig_adjust = 0; adjust_vsize(1); return;