From 17033652eebef7ba1c095f576ec8a1aedc172cfe Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Sat, 9 Jul 2011 20:32:26 +0400 Subject: [PATCH] Revert "Ticket #2453: aggressive screen repaint" This reverts commit f809e6cf7a8b6584f1500d049f133557152dab6d. While navigating in main menu (from one submenu to another one) or after closing a dialog, the screen is blinking. --- lib/tty/tty-ncurses.c | 8 -------- lib/tty/tty-slang.c | 8 -------- lib/tty/tty.h | 1 - lib/widget/dialog.c | 11 +---------- 4 files changed, 1 insertion(+), 27 deletions(-) diff --git a/lib/tty/tty-ncurses.c b/lib/tty/tty-ncurses.c index 65fbf3046..fca7d5441 100644 --- a/lib/tty/tty-ncurses.c +++ b/lib/tty/tty-ncurses.c @@ -280,14 +280,6 @@ tty_touch_screen (void) /* --------------------------------------------------------------------------------------------- */ -void -tty_touch_lines (int start, int num) -{ - touchline (stdscr, start, num); -} - -/* --------------------------------------------------------------------------------------------- */ - void tty_gotoyx (int y, int x) { diff --git a/lib/tty/tty-slang.c b/lib/tty/tty-slang.c index f610140a0..0e7ecb9f5 100644 --- a/lib/tty/tty-slang.c +++ b/lib/tty/tty-slang.c @@ -453,14 +453,6 @@ tty_touch_screen (void) /* --------------------------------------------------------------------------------------------- */ -void -tty_touch_lines (int start, int num) -{ - SLsmg_touch_lines (start, num); -} - -/* --------------------------------------------------------------------------------------------- */ - void tty_gotoyx (int y, int x) { diff --git a/lib/tty/tty.h b/lib/tty/tty.h index 8cc03a78d..ea2f96885 100644 --- a/lib/tty/tty.h +++ b/lib/tty/tty.h @@ -110,7 +110,6 @@ extern int tty_lowlevel_getch (void); extern int tty_reset_screen (void); extern void tty_touch_screen (void); -extern void tty_touch_lines (int start, int num); extern void tty_gotoyx (int y, int x); extern void tty_getyx (int *py, int *px); diff --git a/lib/widget/dialog.c b/lib/widget/dialog.c index 27405d5f4..b6f9afa58 100644 --- a/lib/widget/dialog.c +++ b/lib/widget/dialog.c @@ -871,12 +871,7 @@ do_refresh (void) if (fast_refresh) { if ((d != NULL) && (d->data != NULL)) - { - Dlg_head *dlg = (Dlg_head *) d->data; - - tty_touch_lines (dlg->y, dlg->lines); - dlg_redraw (dlg); - } + dlg_redraw ((Dlg_head *) d->data); } else { @@ -884,10 +879,6 @@ do_refresh (void) for (; d != NULL; d = g_list_next (d)) if ((d->data != NULL) && ((Dlg_head *) d->data)->fullscreen) break; - - /* Clear entire screen to avoid artefacts after printing of non-printable symbols. */ - clr_scr (); - /* back to top dialog */ for (; d != NULL; d = g_list_previous (d)) if (d->data != NULL)