Draw Hud icons white by default

This commit is contained in:
Jan 2021-09-12 15:46:24 +02:00
parent 9ef0948e5d
commit 539b70d38b
2 changed files with 8 additions and 1 deletions

View File

@ -878,7 +878,7 @@ namespace Components
if(letter == '^' && (*curText == '\x01' || *curText == '\x02'))
{
RotateXY(cosAngle, sinAngle, startX, startY, xa, xy, &xRot, &yRot);
xa += DrawHudIcon(curText, xRot, yRot, sinAngle, cosAngle, font, xScale, yScale, finalColor.packed);
xa += DrawHudIcon(curText, xRot, yRot, sinAngle, cosAngle, font, xScale, yScale, ColorRgba(255, 255, 255, finalColor.array[3]));
if (renderFlags & Game::TEXT_RENDERFLAG_PADDING)
xa += xScale * padding;

View File

@ -114,6 +114,13 @@ namespace Components
{1.0f, -1.0f},
{1.0f, 1.0f},
};
static constexpr float WHITE_COLOR[4]
{
1.0f,
1.0f,
1.0f,
1.0f
};
static constexpr float TEXT_COLOR[4]
{
1.0f,