~rabbits/public-inbox

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch

[PATCH oekaki] Make erase set pixel to 0 when blend is off

Details
Message ID
<20240920120554.32007-1-jmaselbas@zdiv.net>
DKIM signature
pass
Download raw message
Patch: +2 -1
---
 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
Reply to thread Export thread (mbox)