Przeglądaj źródła

Update text_inline_styling.c

pull/5506/head
Ray 5 dni temu
rodzic
commit
c610d228a2
1 zmienionych plików z 2 dodań i 2 usunięć
  1. +2
    -2
      examples/text/text_inline_styling.c

+ 2
- 2
examples/text/text_inline_styling.c Wyświetl plik

@ -180,12 +180,12 @@ static void DrawTextStyled(Font font, const char *text, Vector2 position, float
if (text[i - 1] == 'c') if (text[i - 1] == 'c')
{ {
colFront = GetColor(colHexValue); 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') else if (text[i - 1] == 'b')
{ {
colBack = GetColor(colHexValue); 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 ']' i += (colHexCount + 1); // Skip color value retrieved and ']'

Ładowanie…
Anuluj
Zapisz