diff options
Diffstat (limited to 'src/ui/text.c')
-rw-r--r-- | src/ui/text.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/text.c b/src/ui/text.c index a4a3804d..836d540f 100644 --- a/src/ui/text.c +++ b/src/ui/text.c | |||
@@ -460,7 +460,7 @@ static iRect run_Font_(iFont *d, enum iRunMode mode, iRangecc text, size_t maxLe | |||
460 | if (ch == '\r') { | 460 | if (ch == '\r') { |
461 | const iChar esc = nextChar_(&chPos, text.end); | 461 | const iChar esc = nextChar_(&chPos, text.end); |
462 | if (mode == draw_RunMode) { | 462 | if (mode == draw_RunMode) { |
463 | const iColor clr = get_Color(esc - '0'); | 463 | const iColor clr = get_Color(esc - asciiBase_ColorEscape); |
464 | SDL_SetTextureColorMod(text_.cache, clr.r, clr.g, clr.b); | 464 | SDL_SetTextureColorMod(text_.cache, clr.r, clr.g, clr.b); |
465 | } | 465 | } |
466 | prevCh = 0; | 466 | prevCh = 0; |