diff options
author | A-Walrus | 2022-10-17 11:23:50 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2022-10-17 15:38:16 +0000 |
commit | 8bbddf90ffda7c37f8a87f71227a185007ddfae0 (patch) | |
tree | 63aba8f868d10ffff5da7add9ec3d28a76afbf79 /helix-loader | |
parent | 1de02a147c1738015aa26dea7c8fd313f3741d8e (diff) |
Replace `in_bounds` with calculation of end_indent
Instead of repeatedly checking if it is in_bounds, calculate the
max_indent beforehand and just loop. I added a debug_assert to "prove"
that it never tries drawing out of bounds.
Diffstat (limited to 'helix-loader')
0 files changed, 0 insertions, 0 deletions