aboutsummaryrefslogtreecommitdiff
path: root/terminal.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2022-11-24 16:20:05 +0000
committerDaniel Eklöf <daniel@ekloef.se>2022-11-24 16:20:05 +0000
commitfa6b07abeacfb5b8a70bc762e9c8ff64470c4d2c (patch)
tree2f4767d1298cd372150017a197b16e8adb86288c /terminal.c
parentterm: initialize term->font_line_height when there’s no user-set line-height (diff)
term: apply scale factor when converting a px value to pt
Diffstat (limited to 'terminal.c')
-rw-r--r--terminal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/terminal.c b/terminal.c
index 429a4cc3..1914a229 100644
--- a/terminal.c
+++ b/terminal.c
@@ -946,7 +946,7 @@ term_pt_or_px_as_pixels(const struct terminal *term,
return pt_or_px->px == 0
? round(pt_or_px->pt * scale * dpi / 72)
- : pt_or_px->px;
+ : pt_or_px->px * scale;
}
struct font_load_data {