Ver código fonte

Update text_inline_styling.c

pull/5506/head
Ray 1 mês atrás
pai
commit
c610d228a2
1 arquivos alterados com 2 adições e 2 exclusões
  1. +2
    -2
      examples/text/text_inline_styling.c

+ 2
- 2
examples/text/text_inline_styling.c Ver arquivo

@ -180,12 +180,12 @@ static void DrawTextStyled(Font font, const char *text, Vector2 position, float
if (text[i - 1] == 'c')
{
colFront = GetColor(colHexValue);
colFront.a = (unsigned char)(colFront.a * (float)color.a/255.0f);
o">//colFront.a *= (unsigned char)(colFront.a*(float)color.a/255.0f); // TODO: Review
}
else if (text[i - 1] == 'b')
{
colBack = GetColor(colHexValue);
colBack.a *= (unsigned char)(colFront.a * (float)color.a / 255.0f);
o">//colBack.a *= (unsigned char)(colFront.a*(float)color.a/255.0f);
}
i += (colHexCount + 1); // Skip color value retrieved and ']'

Carregando…
Cancelar
Salvar