aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-09-24 20:08:50 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-09-24 20:08:50 +0000
commitebbac832365ffbdbcd16ebebc0b39f7739d52531 (patch)
treecbc4d68c8517e73a35f1b4567d8af49b9998586c /terminal.h
parentdoc: foot.ini: remove stray double quote character (diff)
parentterm: only scale using DPI if *all* monitors have a scaling factor or one (diff)
Merge branch 'non-dpi-aware-if-any-output-uses-scaling'
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/terminal.h b/terminal.h
index 028b4844..b3b4a90e 100644
--- a/terminal.h
+++ b/terminal.h
@@ -329,6 +329,7 @@ struct terminal {
struct config_font *font_sizes[4];
struct pt_or_px font_line_height;
float font_dpi;
+ bool font_is_sized_by_dpi;
int16_t font_x_ofs;
int16_t font_y_ofs;
enum fcft_subpixel font_subpixel;
@@ -660,8 +661,6 @@ bool term_font_size_reset(struct terminal *term);
bool term_font_dpi_changed(struct terminal *term, int old_scale);
void term_font_subpixel_changed(struct terminal *term);
-bool term_font_sized_by_dpi(const struct terminal *term, int scale);
-bool term_font_sized_by_scale(const struct terminal *term, int scale);
int term_pt_or_px_as_pixels(
const struct terminal *term, const struct pt_or_px *pt_or_px);