diff options
author | Bert Münnich <ber.t@posteo.de> | 2017-12-07 21:29:41 +0100 |
---|---|---|
committer | Bert Münnich <ber.t@posteo.de> | 2017-12-07 21:29:44 +0100 |
commit | e63843d36910308338e442f848c763a02b825933 (patch) | |
tree | 37a316d872ed5debdc4080e19f62d63ae4f50988 /commands.c | |
parent | 3c7d6f3528432a433cd368605e4dc6f0fecaa898 (diff) |
Simplify drawing of bar text
Non-fitting text is truncated by simply cutting it off.
win_textwidth() has been replaced by a simple macro wrapper around
win_draw_text() with a maximum width of zero, which results in a dry-run that
still calculates the number of pixels used by the text, much like snprintf(3)
with a buffer length of zero.
Diffstat (limited to 'commands.c')
0 files changed, 0 insertions, 0 deletions