Skip to content

Commit d5a5681

Browse files
committed
More room for widget task progress percentage
1 parent 47bc118 commit d5a5681

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gfx/gfx_widgets.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1184,7 +1184,7 @@ static void gfx_widgets_draw_task_msg(
11841184
_len = snprintf(task_percentage, sizeof(task_percentage),
11851185
"%i%%", msg->task_progress);
11861186

1187-
task_percentage_offset = p_dispwidget->gfx_widget_fonts.msg_queue.glyph_width * _len;
1187+
task_percentage_offset = p_dispwidget->gfx_widget_fonts.msg_queue.glyph_width * (_len + 1);
11881188
rect_width = p_dispwidget->msg_queue_padding * 5.0f + msg->width + task_percentage_offset;
11891189
bar_width = rect_width * msg->task_progress/100.0f;
11901190
text_color = COLOR_TEXT_ALPHA(0xFFFFFF00, (unsigned)(msg->alpha*255.0f));

0 commit comments

Comments
 (0)