term: apply scale factor when converting a px value to pt

This commit is contained in:
Daniel Eklöf 2022-11-24 17:20:05 +01:00
parent e85257bcae
commit fa6b07abea
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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 {