Add a monotonically incrementing counter to UpdateWindows calls

This is for checking draw cache validity
This commit is contained in:
Jonathan G Rennison
2018-01-18 20:00:20 +00:00
parent 4bad77cdf0
commit 8ab6522e7c
3 changed files with 20 additions and 0 deletions

View File

@@ -369,6 +369,8 @@ static Point _vp_move_offs;
static void DoSetViewportPosition(const Window *w, int left, int top, int width, int height)
{
IncrementWindowUpdateNumber();
FOR_ALL_WINDOWS_FROM_BACK_FROM(w, w) {
if (left + width > w->left &&
w->left + w->width > left &&