From c7b895c8ffc4254239301fa07cde8193761de105 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Mon, 5 Jun 2017 09:48:09 +0300 Subject: [PATCH] Fixed applying of clip rect to screen dimming https://forum.zdoom.org/viewtopic.php?t=56719 --- src/v_draw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/v_draw.cpp b/src/v_draw.cpp index 49d23250e2..b60c17616f 100644 --- a/src/v_draw.cpp +++ b/src/v_draw.cpp @@ -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);