diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-05-05 18:44:46 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-05-17 15:58:30 +0000 |
| commit | 99a3b034c33bd88822fb802ee12324eb262ce172 (patch) | |
| tree | 35f0e5317a25a3c7ced70dee563dcff4b53603f0 /render.c | |
| parent | box-drawing: draw_pixman_shade(): named struct initialization (diff) | |
box-drawing: apply antialiasing to LIGHT ARCs
When drawing on an a8 buffer, apply antialiasing to LIGHT ARCs. This
is done by supersampling; draw to a 4 times bigger buffer, then
downsample, where each downsampled pixel is the average of the
corresponding 4x4 pixel from the supersampled buffer.
We also need to take supersampling into account while adjusting the row
and col when pixel aligning the arcs with the regular
horizontal/vertical lines.
The shape of the ARCs can still be improved. Still, this is a much
needed improvement over the current implementation.
Closes #279
Diffstat (limited to 'render.c')
0 files changed, 0 insertions, 0 deletions
