mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
- fixed: For Screen.SetClipRect, -1 is a valid value for width and height so it must not be clamped away.
This commit is contained in:
parent
47bb29bac6
commit
1135f154b7
1 changed files with 2 additions and 2 deletions
|
@ -186,9 +186,9 @@ void DCanvas::DrawTextureParms(FTexture *img, DrawParms &parms)
|
|||
void DCanvas::SetClipRect(int x, int y, int w, int h)
|
||||
{
|
||||
clipleft = clamp(x, 0, GetWidth());
|
||||
clipwidth = clamp(w, 0, GetWidth() - x);
|
||||
clipwidth = clamp(w, -1, GetWidth() - x);
|
||||
cliptop = clamp(y, 0, GetHeight());
|
||||
clipheight = clamp(h, 0, GetHeight() - y);
|
||||
clipheight = clamp(h, -1, GetHeight() - y);
|
||||
}
|
||||
|
||||
DEFINE_ACTION_FUNCTION(_Screen, SetClipRect)
|
||||
|
|
Loading…
Reference in a new issue