From 8f7e902875aa7d5dca1634dbd353f32efac5f9bd Mon Sep 17 00:00:00 2001 From: Chronos Ouroboros Date: Sat, 26 Oct 2019 13:42:24 -0300 Subject: [PATCH] Fixed ZScript's Screen.DrawLine using the wrong color when drawing pure black. --- src/rendering/2d/v_draw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rendering/2d/v_draw.cpp b/src/rendering/2d/v_draw.cpp index c1ceceac6c..82d87b543b 100644 --- a/src/rendering/2d/v_draw.cpp +++ b/src/rendering/2d/v_draw.cpp @@ -1132,7 +1132,7 @@ DEFINE_ACTION_FUNCTION(_Screen, DrawLine) PARAM_INT(color); PARAM_INT(alpha); if (!screen->HasBegun2D()) ThrowAbortException(X_OTHER, "Attempt to draw to screen outside a draw function"); - screen->DrawLine(x0, y0, x1, y1, -1, color, alpha); + screen->DrawLine(x0, y0, x1, y1, -1, color | MAKEARGB(255, 0, 0, 0), alpha); return 0; }