summaryrefslogtreecommitdiff
path: root/src/ui/text.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/text.c')
-rw-r--r--src/ui/text.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ui/text.c b/src/ui/text.c
index d4a6b61d..3d208b68 100644
--- a/src/ui/text.c
+++ b/src/ui/text.c
@@ -80,9 +80,9 @@ iChar char_Glyph(const iGlyph *d) {
80 80
81iDefineTypeConstructionArgs(Glyph, (iChar ch), ch) 81iDefineTypeConstructionArgs(Glyph, (iChar ch), ch)
82 82
83 /*-----------------------------------------------------------------------------------------------*/ 83/*-----------------------------------------------------------------------------------------------*/
84 84
85 struct Impl_Font { 85struct Impl_Font {
86 iBlock * data; 86 iBlock * data;
87 stbtt_fontinfo font; 87 stbtt_fontinfo font;
88 float scale; 88 float scale;
@@ -628,7 +628,8 @@ static iRect run_Font_(iFont *d, enum iRunMode mode, iRangecc text, size_t maxLe
628 if (match_RegExp(text_.ansiEscape, chPos, text.end - chPos, &m)) { 628 if (match_RegExp(text_.ansiEscape, chPos, text.end - chPos, &m)) {
629 if (mode == draw_RunMode) { 629 if (mode == draw_RunMode) {
630 /* Change the color. */ 630 /* Change the color. */
631 const iColor clr = ansi_Color(capturedRange_RegExpMatch(&m, 1), tmParagraph_ColorId); 631 const iColor clr =
632 ansiForeground_Color(capturedRange_RegExpMatch(&m, 1), tmParagraph_ColorId);
632 SDL_SetTextureColorMod(text_.cache, clr.r, clr.g, clr.b); 633 SDL_SetTextureColorMod(text_.cache, clr.r, clr.g, clr.b);
633 } 634 }
634 chPos = end_RegExpMatch(&m); 635 chPos = end_RegExpMatch(&m);