diff --git a/src/v_draw.cpp b/src/v_draw.cpp index 314a0fb9a..ea589cbfc 100644 --- a/src/v_draw.cpp +++ b/src/v_draw.cpp @@ -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)