From 6f83ef81e54b2695692c76a0a06c94c53cb7e315 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Mon, 20 Apr 2020 18:37:59 +0200 Subject: render: use output's subpixel mode when rasterizing glyphs --- terminal.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'terminal.h') diff --git a/terminal.h b/terminal.h index 7b7b0182..0ef3db75 100644 --- a/terminal.h +++ b/terminal.h @@ -217,6 +217,7 @@ struct terminal { struct font *fonts[4]; int font_dpi; int font_adjustments; + enum subpixel_order font_subpixel; tll(struct ptmx_buffer) ptmx_buffer; @@ -445,6 +446,8 @@ bool term_font_size_increase(struct terminal *term); bool term_font_size_decrease(struct terminal *term); bool term_font_size_reset(struct terminal *term); bool term_font_dpi_changed(struct terminal *term); +void term_font_subpixel_changed(struct terminal *term); + void term_damage_rows(struct terminal *term, int start, int end); void term_damage_rows_in_view(struct terminal *term, int start, int end); -- cgit v1.3