git: 9front

Download patch

ref: 29485e6d2b3f83c46f76d190041e3c70599ed351
parent: c48aa2374ec6aef75380c9d832310560ad59568a
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)
--