diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2023-07-31 14:29:08 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2023-08-07 14:38:03 +0000 |
| commit | a3d54614c7bc0a88b00bb98ad7bb2f730b0b7e72 (patch) | |
| tree | 87493ffced15d3df9c40407fe2483608d9e7aba3 /debug.h | |
| parent | main: translate command line options to overrides (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 'debug.h')
0 files changed, 0 insertions, 0 deletions
