diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2023-07-31 14:29:08 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2023-07-31 14:48:49 +0000 |
| commit | 90ad3d6491670ecc38aa5dcf02b9e1dc626bbf51 (patch) | |
| tree | 4c25b618d61b2b8079a453cb04eba686ac2408a2 /scripts/benchmark.py | |
| parent | config: remove deprecated option 'utempter' (diff) | |
render: OSD: center text vertically
Rewrite render_osd(), and instead of passing in an y-offset, let
render_osd() itself center the text inside the OSD buffer.
This is done using the same baseline calculation term_font_baseline()
does, except we use the buffer height instead of the line height.
Note that most OSDs are sized based on the line height...
Closes #1430
Diffstat (limited to 'scripts/benchmark.py')
0 files changed, 0 insertions, 0 deletions
