summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2024-09-09 21:28:50 -0700
committerVito Caputo <vcaputo@pengaru.com>2024-09-09 21:28:50 -0700
commitddc39b6acc4ffea677826e6dcb401be96552698d (patch)
tree6f3114114116e06722bd3faedcb0ac1b308f9293 /src
parent848272cf9f89b2265be77070e0204264381ed637 (diff)
vcr: clear shadow layer for entire row
This should have been changed when transitioning to nibbles and the separators became generated @ present time when serializing to png. The first pass clears the shadow layer while assigning the first offset part of the shadow. But it was staying within the separators, which is now resulting in small bits of littered shadow corruption in the separators barely visible in the PNGs. Fix is trivial; initialize the separator bits when shadowing the row as well.
Diffstat (limited to 'src')
-rw-r--r--src/vcr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vcr.c b/src/vcr.c
index 60f9522..1a47ae0 100644
--- a/src/vcr.c
+++ b/src/vcr.c
@@ -1488,7 +1488,7 @@ void vcr_shadow_row(vcr_t *vcr, vcr_layer_t layer, int row)
/* TODO: optimize this abomination, maybe switch to shadowing the text @ serialization to png time for the mem->png headless scenario? */
/* first pass has to clean up the shadow plane while doing one offset of shadow bits */
- for (int i = 1; i < VCR_ROW_HEIGHT - 1; i++) {
+ for (int i = 0; i < VCR_ROW_HEIGHT; i++) {
uint8_t *s = &vcr->mem.bits[(row * VCR_ROW_HEIGHT + i) * vcr->mem.pitch];
uint8_t *d = &vcr->mem.bits[(row * VCR_ROW_HEIGHT + i) * vcr->mem.pitch + 1];
© All Rights Reserved