Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clear window line by line, skipping untouched lines (CleverRaven#72035)
* clear window line by line, skipping untouched lines Many of the windows in the game, especially the ones with scrollbars, create multiple overlapping windows and then draw them in an odd order. This results in overdraw, but that was partly compensated for by the cache that we removed. Now that we clear the whole window in one go, this causes artifacts as we erase text that was already drawn in a different window that overlaps the current one. By erasing only the lines that are touched, we avoid the problem. Fixes CleverRaven#71994. * format the code to placate astyle Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
- Loading branch information