aboutsummaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-01-02 11:09:00 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-01-02 11:09:00 +0000
commit5a5134e9bd6ec4d32d55616dffad424626fa3384 (patch)
tree9b2e45bf20347a24937fa755dca351ffdb2f0914 /render.c
parentbox-drawing: LIGHT ARC: use min/max instead of checking range inside loop (diff)
box-drawing: LIGHT ARC: simpler way to adjust for asymmetrical arc when mirroring
When mirroring an arc, we need to adjust the mirrored position if the arc’s position in the cell is asymmetrical. This happens when *either* the line is odd sized, *or* the cell is. But not when both are. Thus, we can simply do a ‘thickness % 2 ^ width % 2’ when adjusting the position. Describe this in a comment.
Diffstat (limited to 'render.c')
0 files changed, 0 insertions, 0 deletions