aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-05-17 15:56:02 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-05-17 15:56:02 +0000
commitba23ee73e52179cc061b805600975649363ad58f (patch)
treeb1b3931407dc8097d39e890cad03a1b51cb9776c /terminal.h
parentMerge branch 'reflow-performance' (diff)
parentterm: get rid of term->font_scale, use term->scale only (diff)
Merge branch 'font-scaling-factor-wrong'
Closes #509
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 85ba90eb..472b4938 100644
--- a/terminal.h
+++ b/terminal.h
@@ -320,7 +320,6 @@ struct terminal {
struct config_font *font_sizes[4];
struct pt_or_px font_line_height;
float font_dpi;
- int font_scale;
int16_t font_x_ofs;
int16_t font_y_ofs;
enum fcft_subpixel font_subpixel;
@@ -614,7 +613,7 @@ bool term_paste_data_to_slave(
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);
+bool term_font_dpi_changed(struct terminal *term, int old_scale);
void term_font_subpixel_changed(struct terminal *term);
int term_pt_or_px_as_pixels(
const struct terminal *term, const struct pt_or_px *pt_or_px);