Prevent flickering when redrawing the TUI source window
authorHannes Domani <ssbssa@yahoo.de>
Mon, 21 Dec 2020 13:26:29 +0000 (14:26 +0100)
committerHannes Domani <ssbssa@yahoo.de>
Tue, 5 Jan 2021 13:08:26 +0000 (14:08 +0100)
commit5519536196e670c3c0fb2b138acc44049227e724
tree0fc0eb0f75778e15aaa627140d618dcbebe6fd9e
parent1b6d4bb2232ff9fd692a332a491b95b5f4052dfe
Prevent flickering when redrawing the TUI source window

tui_win_info::refresh_window simply calls wrefresh, which internally
does a doupdate.
This redraws the source background window without the source pad.
Then prefresh of the source pad draws the actual source code on top,
which flickers.

By changing this to wnoutrefresh, the actual drawing on the screen is
only done once in the following prefresh, without flickering.

gdb/ChangeLog:

2021-01-05  Hannes Domani  <ssbssa@yahoo.de>

* tui/tui-winsource.c (tui_source_window_base::refresh_window):
Call wnoutrefresh instead of tui_win_info::refresh_window.
gdb/ChangeLog
gdb/tui/tui-winsource.c