diff options
author | Phil Jones <philj56@gmail.com> | 2023-03-06 21:27:16 +0000 |
---|---|---|
committer | Phil Jones <philj56@gmail.com> | 2023-03-06 21:27:16 +0000 |
commit | 582825eda792c2612ab6f43a14ccb2bea3aee5d4 (patch) | |
tree | 413aed213ce35d91a69a6bd073a6461cc26dad8e /src/entry.h | |
parent | c4c32f63617f612e91e5a4b3b0012d922e5104df (diff) |
Add fractional scaling support.
The main change is that we now always have to set up the dummy surface
which was previously only used when multiple monitors were present. This
is because there's no way to determine an output's fractional scale
factor without displaying a surface on it, and we need to know the scale
factor before we create our main window surface.
The extra compositor round-trips lead to a slight slowdown for single
monitor setups (to the same speed as multi-monitor setups), but it's
currently unavoidable as far as I know.
Diffstat (limited to 'src/entry.h')
-rw-r--r-- | src/entry.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/entry.h b/src/entry.h index 882204c..35d2302 100644 --- a/src/entry.h +++ b/src/entry.h @@ -134,7 +134,7 @@ struct entry { struct text_theme selection_theme; }; -void entry_init(struct entry *entry, uint8_t *restrict buffer, uint32_t width, uint32_t height, uint32_t scale); +void entry_init(struct entry *entry, uint8_t *restrict buffer, uint32_t width, uint32_t height, uint32_t fractional_scale_numerator); void entry_destroy(struct entry *entry); void entry_update(struct entry *entry); |