From e3684f3379fb10902019395bd930a52bbe082cc7 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Fri, 4 Sep 2009 11:27:37 +0400 Subject: [PATCH] Ticket #1582: fixed screen flickering on updates. Partial revert of 4e40f6e98f2036cc8893e581cf52cdf5c239064e. Don't call tty_touch_screen() for each screen repaint. Signed-off-by: Andrew Borodin --- src/cmd.c | 3 ++- src/layout.c | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd.c b/src/cmd.c index 5ea1b0582..5f61f0c99 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -47,7 +47,7 @@ #include "global.h" -#include "../src/tty/tty.h" /* LINES */ +#include "../src/tty/tty.h" /* LINES, tty_touch_screen() */ #include "../src/tty/key.h" /* ALT() macro */ #include "../src/tty/win.h" /* do_enter_ca_mode() */ @@ -892,6 +892,7 @@ history_cmd (void) void swap_cmd (void) { swap_panels (); + tty_touch_screen (); repaint_screen (); } diff --git a/src/layout.c b/src/layout.c index ce8de7aab..0e2b3c307 100644 --- a/src/layout.c +++ b/src/layout.c @@ -587,7 +587,6 @@ void repaint_screen (void) { do_refresh (); - tty_touch_screen (); tty_refresh (); }