Skip to content

Commit 22d7661

Browse files
committed
Revise to use scale in draw built-in menu
Signed-off-by: gujie <[email protected]>
1 parent a953cc1 commit 22d7661

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/draw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ static void draw_built_in_menu(cairo_t *c, struct colored_layout *cl, int area_x
837837
double text_y = y + (settings.menu_height - text_height) / 2;
838838

839839
cairo_set_source_rgba(c, COLOR(cl, fg.r), COLOR(cl, fg.g), COLOR(cl, fg.b), COLOR(cl, fg.a));
840-
cairo_move_to(c, text_x, text_y);
840+
cairo_move_to(c, round(text_x * scale), round(text_y * scale));
841841
pango_cairo_show_layout(c, cl->l);
842842
}
843843
}

0 commit comments

Comments
 (0)