From 0a224fa2c57bea021468d96ccaf1968e89dc2c47 Mon Sep 17 00:00:00 2001 From: cancel Date: Fri, 21 Dec 2018 10:54:16 +0900 Subject: [PATCH] Add back (ifdef'd out) old timing table --- tui_main.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/tui_main.c b/tui_main.c index 317c062..43878fa 100644 --- a/tui_main.c +++ b/tui_main.c @@ -1905,6 +1905,7 @@ int main(int argc, char** argv) { doupdate(); double secs_to_d = ged_secs_to_deadline(&ged_state); int new_timeout; +#if 1 if (secs_to_d < ms_to_sec(0.5)) { new_timeout = 0; } else if (secs_to_d < ms_to_sec(1.5)) { @@ -1932,6 +1933,27 @@ int main(int argc, char** argv) { } else { new_timeout = 50; } +#else + if (secs_to_d < ms_to_sec(0.5)) { + new_timeout = 0; + } else if (secs_to_d < ms_to_sec(1.0)) { + new_timeout = 0; + } else if (secs_to_d < ms_to_sec(2.0)) { + new_timeout = 1; + } else if (secs_to_d < ms_to_sec(7.0)) { + new_timeout = 2; + } else if (secs_to_d < ms_to_sec(15.0)) { + new_timeout = 5; + } else if (secs_to_d < ms_to_sec(25.0)) { + new_timeout = 10; + } else if (secs_to_d < ms_to_sec(50.0)) { + new_timeout = 20; + } else if (secs_to_d < ms_to_sec(100.0)) { + new_timeout = 40; + } else { + new_timeout = 50; + } +#endif if (new_timeout != cur_timeout) { wtimeout(stdscr, new_timeout); cur_timeout = new_timeout;