forked from martijnvanbrummelen/nwipe
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This fixes screen flicker seen in the following situations:
These apply in full screen mode ONLY: i.e ALT-F2, Shredos etc. 1. When selecting a drive using up/down arrow keys 2. During a wipe the screen flashes at one second intervals. These apply in a terminal window such as konsole, tmux etc. 1. When resizing the terminal there was a flicker. All these problems have been fixed. Most of the causes of the flicker was an excessive use of wrefresh() which calls the wnoutrefresh() and doupdate() functions. This can cause flickering when a number of calls to wrefresh happen at the same time. It is more appropriate to replace the wrefresh() with wnoutrefresh(), then at an appropriate time call doupate() just once. The result is that before doupdate() would have been called multiple times and now it's called once when required. fixes martijnvanbrummelen#115
- Loading branch information
1 parent
b3adbb3
commit aad29f1
Showing
2 changed files
with
52 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters