ref: f57306d7ebb50073dc81e0f7bbdfe94f5e0c74d0
parent: 5954b7a45050d8ef5251dc3cbf746d0ffb5e5e71
author: rodri <rgl@antares-labs.eu>
date: Wed Sep 17 07:11:36 EDT 2025
libmemlayer: fix little typo in memdraw() This caused the y-coordinate in the mask's point (p1) to be adjusted relative to the dstr x-position.
--- a/sys/src/libmemlayer/draw.c
+++ b/sys/src/libmemlayer/draw.c
@@ -121,7 +121,7 @@
tr.min.x = srcr.min.x;
}
if(srcr.min.y < tr.min.y){- p1.y += tr.min.x - srcr.min.x;
+ p1.y += tr.min.y - srcr.min.y;
tr.min.y = srcr.min.y;
}
if(srcr.max.x > tr.max.x)
--
⑨