diff options
Diffstat (limited to 'swaybar/render.c')
-rw-r--r-- | swaybar/render.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/swaybar/render.c b/swaybar/render.c index ea5faef6..3a626e1c 100644 --- a/swaybar/render.c +++ b/swaybar/render.c | |||
@@ -698,8 +698,13 @@ void render_frame(struct swaybar_output *output) { | |||
698 | cairo_set_antialias(cairo, CAIRO_ANTIALIAS_BEST); | 698 | cairo_set_antialias(cairo, CAIRO_ANTIALIAS_BEST); |
699 | cairo_font_options_t *fo = cairo_font_options_create(); | 699 | cairo_font_options_t *fo = cairo_font_options_create(); |
700 | cairo_font_options_set_hint_style(fo, CAIRO_HINT_STYLE_FULL); | 700 | cairo_font_options_set_hint_style(fo, CAIRO_HINT_STYLE_FULL); |
701 | cairo_font_options_set_antialias(fo, CAIRO_ANTIALIAS_SUBPIXEL); | 701 | if (output->subpixel == WL_OUTPUT_SUBPIXEL_NONE) { |
702 | cairo_font_options_set_subpixel_order(fo, to_cairo_subpixel_order(output->subpixel)); | 702 | cairo_font_options_set_antialias(fo, CAIRO_ANTIALIAS_GRAY); |
703 | } else { | ||
704 | cairo_font_options_set_antialias(fo, CAIRO_ANTIALIAS_SUBPIXEL); | ||
705 | cairo_font_options_set_subpixel_order(fo, | ||
706 | to_cairo_subpixel_order(output->subpixel)); | ||
707 | } | ||
703 | cairo_set_font_options(cairo, fo); | 708 | cairo_set_font_options(cairo, fo); |
704 | cairo_font_options_destroy(fo); | 709 | cairo_font_options_destroy(fo); |
705 | cairo_save(cairo); | 710 | cairo_save(cairo); |