[PATCH oekaki] Make erase set pixel to 0 when blend is off
Export this patch
---
src/oekaki.tal | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/oekaki.tal b/src/oekaki.tal
index 468e499..3d3721e 100644
--- a/src/oekaki.tal
+++ b/src/oekaki.tal
@@ -464,7 +464,8 @@
DUP2 .canvas/height LDZ2 LTH2 ?{ POP2 POP2 JMP2r }
OVR2 .canvas/width LDZ2 LTH2 ?{ POP2 POP2 JMP2r }
patt-pixel ?{ POP2 POP2 JMP2r }
- .brush/color LDZ !<blend-pixel>/force
+ [ LIT2 00 -brush/color ] LDZ .brush/erase LDZ ?{ SWP }
+ POP !<blend-pixel>/force
@dec-pixel ( x* y* -- )
DUP2 .canvas/height LDZ2 LTH2 ?{ POP2 POP2 JMP2r }
--
2.45.2