Revert: "Cleanup: Give SetDirtyBlocks a more descriptive name."

This reverts commit 8652a4db76.
This is necessary to aid in the cherry-picking of commits from JGRPP.
This commit is contained in:
TechGeekNZ
2020-06-12 09:34:34 +12:00
parent b84d61ef6e
commit c9abf6ade6
6 changed files with 15 additions and 24 deletions

View File

@@ -983,7 +983,7 @@ void DrawOverlappedWindowForAll(int left, int top, int right, int bottom)
*/
void Window::SetDirty() const
{
AddDirtyBlock(this->left, this->top, this->left + this->width, this->top + this->height);
SetDirtyBlocks(this->left, this->top, this->left + this->width, this->top + this->height);
}
/**
@@ -3493,7 +3493,7 @@ static int PositionWindow(Window *w, WindowClass clss, int setting)
default: w->left = 0; break;
}
if (w->viewport != nullptr) w->viewport->left += w->left - old_left;
AddDirtyBlock(0, w->top, _screen.width, w->top + w->height); // invalidate the whole row
SetDirtyBlocks(0, w->top, _screen.width, w->top + w->height); // invalidate the whole row
return w->left;
}