Fixed ZScript's Screen.DrawLine using the wrong color when drawing pure black.

This commit is contained in:
Chronos Ouroboros 2019-10-26 13:42:24 -03:00
parent 10078f519a
commit 8f7e902875

View file

@ -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;
}