aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-08-14 11:00:45 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-08-14 11:00:45 +0000
commit807a3043068ced666cc577409954df08f077df40 (patch)
treebd28c0a5bec99cb81e142957646b96923cfb9d44 /terminal.h
parentreadme: change "32bpp" to "24bpp" in features list (diff)
parentpt-or-px: heed the dpi-aware setting (diff)
Merge branch 'pt-or-px-scaling'
Closes #680
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/terminal.h b/terminal.h
index 74a8f2de..f394a5b0 100644
--- a/terminal.h
+++ b/terminal.h
@@ -643,6 +643,9 @@ bool term_font_size_decrease(struct terminal *term);
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);