summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/text.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/text.c b/src/ui/text.c
index 7c39089d..4b3a5a10 100644
--- a/src/ui/text.c
+++ b/src/ui/text.c
@@ -1023,6 +1023,8 @@ void init_TextBuf(iTextBuf *d, int font, const char *text) {
1023 SDL_Texture *oldTarget = SDL_GetRenderTarget(render); 1023 SDL_Texture *oldTarget = SDL_GetRenderTarget(render);
1024 SDL_SetRenderTarget(render, d->texture); 1024 SDL_SetRenderTarget(render, d->texture);
1025 SDL_SetTextureBlendMode(text_.cache, SDL_BLENDMODE_NONE); /* blended when TextBuf is drawn */ 1025 SDL_SetTextureBlendMode(text_.cache, SDL_BLENDMODE_NONE); /* blended when TextBuf is drawn */
1026 SDL_SetRenderDrawColor(text_.render, 255, 255, 255, 0);
1027 SDL_RenderClear(text_.render);
1026 draw_Text_(font, zero_I2(), white_ColorId, range_CStr(text)); 1028 draw_Text_(font, zero_I2(), white_ColorId, range_CStr(text));
1027 SDL_SetTextureBlendMode(text_.cache, SDL_BLENDMODE_BLEND); 1029 SDL_SetTextureBlendMode(text_.cache, SDL_BLENDMODE_BLEND);
1028 SDL_SetRenderTarget(render, oldTarget); 1030 SDL_SetRenderTarget(render, oldTarget);