diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/text_simple.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui/text_simple.c b/src/ui/text_simple.c index 8560c138..71942cf1 100644 --- a/src/ui/text_simple.c +++ b/src/ui/text_simple.c | |||
@@ -118,8 +118,9 @@ static iRect runSimple_Font_(iFont *d, const iRunArgs *args) { | |||
118 | if (match_RegExp(activeText_->ansiEscape, chPos, args->text.end - chPos, &m)) { | 118 | if (match_RegExp(activeText_->ansiEscape, chPos, args->text.end - chPos, &m)) { |
119 | if (mode & draw_RunMode && ~mode & permanentColorFlag_RunMode) { | 119 | if (mode & draw_RunMode && ~mode & permanentColorFlag_RunMode) { |
120 | /* Change the color. */ | 120 | /* Change the color. */ |
121 | iColor clr; | 121 | iColor clr = get_Color(args->color); |
122 | ansiColors_Color(capturedRange_RegExpMatch(&m, 1), tmParagraph_ColorId, | 122 | ansiColors_Color(capturedRange_RegExpMatch(&m, 1), |
123 | activeText_->baseFgColorId, | ||
123 | none_ColorId, &clr, NULL); | 124 | none_ColorId, &clr, NULL); |
124 | SDL_SetTextureColorMod(activeText_->cache, clr.r, clr.g, clr.b); | 125 | SDL_SetTextureColorMod(activeText_->cache, clr.r, clr.g, clr.b); |
125 | if (args->mode & fillBackground_RunMode) { | 126 | if (args->mode & fillBackground_RunMode) { |