Cleanup warnings in examples (#5467)

This commit is contained in:
Jeffery Myers
2026-01-03 13:38:51 -08:00
committed by GitHub
parent f67e70bb47
commit b00cbdaf49
13 changed files with 83 additions and 80 deletions

View File

@ -178,14 +178,14 @@ static void DrawTextStyled(Font font, const char *text, Vector2 position, float
// Convert hex color text into actual Color
unsigned int colHexValue = strtoul(colHexText, NULL, 16);
if (text[i - 1] == 'c')
{
{
colFront = GetColor(colHexValue);
colFront.a *= (float)color.a/255.0f;
colFront.a = (unsigned char)(colFront.a * (float)color.a/255.0f);
}
else if (text[i - 1] == 'b')
{
colBack = GetColor(colHexValue);
colBack.a *= (float)color.a/255.0f;
colBack.a *= (unsigned char)(colFront.a * (float)color.a / 255.0f);
}
i += (colHexCount + 1); // Skip color value retrieved and ']'