diff options
author | Phil Jones <philj56@gmail.com> | 2022-06-10 14:31:54 +0100 |
---|---|---|
committer | Phil Jones <philj56@gmail.com> | 2022-06-10 14:31:54 +0100 |
commit | ee0cd76769d395ce99fad6b76622cfeff714b0f5 (patch) | |
tree | ac1ef98d8c229ae61210b78bd0df3d1565c94807 /src/entry_backend/pango.h | |
parent | 6ae1fc396820cba2bf0f0c2c51e892fd9d78eaed (diff) |
Remove unneeded Pango layouts.
We don't actually need a separate pango layout for each piece of text,
as we only use them one-by-one anyway, so just use one instead.
Diffstat (limited to 'src/entry_backend/pango.h')
-rw-r--r-- | src/entry_backend/pango.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/entry_backend/pango.h b/src/entry_backend/pango.h index ef58be3..67b199f 100644 --- a/src/entry_backend/pango.h +++ b/src/entry_backend/pango.h @@ -7,9 +7,7 @@ struct entry; struct entry_backend { PangoContext *context; - PangoLayout *prompt_layout; - PangoLayout *entry_layout; - PangoLayout *result_layouts[5]; + PangoLayout *layout; }; void entry_backend_init(struct entry *entry, uint32_t *width, uint32_t *height, uint32_t scale); |