Fixed applying of clip rect to screen dimming

https://forum.zdoom.org/viewtopic.php?t=56719
This commit is contained in:
alexey.lysiuk 2017-06-05 09:48:09 +03:00
parent 1ed415014e
commit c7b895c8ff

View file

@ -1060,7 +1060,7 @@ void DCanvas::Dim(PalEntry color, float damount, int x1, int y1, int w, int h)
h -= (cliptop - y1);
y1 = cliptop;
}
if (h > clipheight) w = clipheight;
if (h > clipheight) h = clipheight;
if (h <= 0) return;
}
DoDim(color, damount, x1, y1, w, h);