aboutsummaryrefslogtreecommitdiff
path: root/exec
diff options
context:
space:
mode:
authorBert Münnich <ber.t@posteo.de>2017-12-07 21:29:41 +0100
committerBert Münnich <ber.t@posteo.de>2017-12-07 21:29:44 +0100
commite63843d36910308338e442f848c763a02b825933 (patch)
tree37a316d872ed5debdc4080e19f62d63ae4f50988 /exec
parent3c7d6f3528432a433cd368605e4dc6f0fecaa898 (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 'exec')
0 files changed, 0 insertions, 0 deletions