- 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:
parent
c4c2b440fc
commit
f3db5f3803
12 changed files with 119 additions and 70 deletions
|
|
@ -730,6 +730,7 @@ void WI_Drawer()
|
|||
{
|
||||
VMValue self = WI_Screen;
|
||||
GlobalVMStack.Call(func, &self, 1, nullptr, 0);
|
||||
screen->ClearClipRect(); // make sure the scripts don't leave a valid clipping rect behind.
|
||||
|
||||
// The internal handling here is somewhat poor. After being set to 'LeavingIntermission'
|
||||
// the screen is needed for one more draw operation so we cannot delete it right away but only here.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue