Skip to content
Permalink
Browse files

Fixed ZScript's Screen.DrawLine using the wrong color when drawing pu…

…re black.
  • Loading branch information...
Doom2fan committed Oct 26, 2019
1 parent 10078f5 commit 8f7e902875aa7d5dca1634dbd353f32efac5f9bd
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;
}

0 comments on commit 8f7e902

Please sign in to comment.
You can’t perform that action at this time.