term: font_dpi_changed: scale (and old_scale) are floating point

This should fix an issue where the font size wasn’t updated when
moving the window between outputs whose scaling factors match when
truncated.
This commit is contained in:
Daniel Eklöf 2023-07-16 08:28:21 +02:00
parent 2fd29cbf50
commit 829353a5da
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 5 additions and 5 deletions

View file

@ -739,7 +739,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, int old_scale);
bool term_font_dpi_changed(struct terminal *term, float old_scale);
void term_font_subpixel_changed(struct terminal *term);
int term_pt_or_px_as_pixels(