mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
box-drawing: reduce number of function arguments
We were using so many function arguments that a lot of the emitted code was just stack push and pops to pass around arguments. Bundle the buffer data, width, height, stride, and current DPI, into a single ‘buf’ argument. This greatly reduces the number of arguments to all functions.
This commit is contained in:
parent
25f21d4202
commit
c75192b4f8
1 changed files with 589 additions and 579 deletions
1168
box-drawing.c
1168
box-drawing.c
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue