git: drawterm

Download patch

ref: 73fadf6cc5bb45316209d2b8e11d47a535dc8f5c
parent: 7523180ec9e5210e28eb0191268066188cdf91ab
author: rodri <rgl@antares-labs.eu>
date: Fri Sep 19 11:09:11 EDT 2025

libmemlayer: fix little typo in memdraw()

backport from 9front.

This caused the y-coordinate in the mask's point (p1) to be
adjusted relative to the dstr x-position.

--- a/libmemlayer/draw.c
+++ b/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)
--