diff options
Diffstat (limited to 'src/ui/text.c')
-rw-r--r-- | src/ui/text.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui/text.c b/src/ui/text.c index 55fd4254..db922715 100644 --- a/src/ui/text.c +++ b/src/ui/text.c | |||
@@ -1504,9 +1504,10 @@ static void initWrap_TextBuf_(iTextBuf *d, int font, int color, int maxWidth, iB | |||
1504 | if (d->texture) { | 1504 | if (d->texture) { |
1505 | SDL_Texture *oldTarget = SDL_GetRenderTarget(render); | 1505 | SDL_Texture *oldTarget = SDL_GetRenderTarget(render); |
1506 | SDL_SetRenderTarget(render, d->texture); | 1506 | SDL_SetRenderTarget(render, d->texture); |
1507 | SDL_SetRenderDrawBlendMode(render, SDL_BLENDMODE_NONE); | ||
1508 | SDL_SetRenderDrawColor(render, 255, 255, 255, 0); | ||
1509 | SDL_RenderClear(render); | ||
1507 | SDL_SetTextureBlendMode(text_.cache, SDL_BLENDMODE_NONE); /* blended when TextBuf is drawn */ | 1510 | SDL_SetTextureBlendMode(text_.cache, SDL_BLENDMODE_NONE); /* blended when TextBuf is drawn */ |
1508 | SDL_SetRenderDrawColor(text_.render, 0, 0, 0, 0); | ||
1509 | SDL_RenderClear(text_.render); | ||
1510 | const int fg = color | fillBackground_ColorId; | 1511 | const int fg = color | fillBackground_ColorId; |
1511 | iRangecc range = range_CStr(text); | 1512 | iRangecc range = range_CStr(text); |
1512 | if (maxWidth == 0) { | 1513 | if (maxWidth == 0) { |