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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user