- added a clipping rectangle to DCanvas that can be used independently of DrawTexture calls.

Currently this is only being used for draw operations that are not automap related, i.e. DrawLine, DrawPixel and FillSimplePoly are not subjected to it.
This commit is contained in:
Christoph Oelckers 2017-03-28 13:06:24 +02:00
commit f3db5f3803
12 changed files with 119 additions and 70 deletions

View file

@ -279,6 +279,7 @@ void DMenu::CallDrawer()
{
VMValue params[] = { (DObject*)this };
GlobalVMStack.Call(func, params, 1, nullptr, 0, nullptr);
screen->ClearClipRect(); // make sure the scripts don't leave a valid clipping rect behind.
}
}