summaryrefslogtreecommitdiff
path: root/src/ui/translation.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/translation.c')
-rw-r--r--src/ui/translation.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/translation.c b/src/ui/translation.c
index cef68dce..b86e6e52 100644
--- a/src/ui/translation.c
+++ b/src/ui/translation.c
@@ -136,7 +136,8 @@ static void draw_TranslationProgressWidget_(const iTranslationProgressWidget *d)
136 get_Color(palette[palCur]), get_Color(palette[palNext]), palPos - (int) palPos); 136 get_Color(palette[palCur]), get_Color(palette[palNext]), palPos - (int) palPos);
137 SDL_SetRenderDrawColor(renderer_Window(get_Window()), back.r, back.g, back.b, p.alpha); 137 SDL_SetRenderDrawColor(renderer_Window(get_Window()), back.r, back.g, back.b, p.alpha);
138 SDL_RenderFillRect(renderer_Window(get_Window()), 138 SDL_RenderFillRect(renderer_Window(get_Window()),
139 &(SDL_Rect){ pos.x, pos.y, spr->size.x, spr->size.y }); 139 &(SDL_Rect){ pos.x + origin_Paint.x, pos.y + origin_Paint.y,
140 spr->size.x, spr->size.y });
140 if (fg >= 0) { 141 if (fg >= 0) {
141 setOpacity_Text(opacity * 2); 142 setOpacity_Text(opacity * 2);
142 drawRange_Text(d->font, addX_I2(pos, spr->xoff), fg, range_String(&spr->text)); 143 drawRange_Text(d->font, addX_I2(pos, spr->xoff), fg, range_String(&spr->text));