shithub: puzzles

Download patch

ref: 819277148315fd5b5cc987e4b4e440e5b2bd2dad
parent: 2d90f1194071c1aab50331aec255c21c8baf2eb3
author: sirjofri <sirjofri@sirjofri.de>
date: Fri Jun 7 08:23:38 EDT 2024

fixes clipping for text drawing

--- a/plan9.c
+++ b/plan9.c
@@ -212,9 +212,9 @@
 		p.x -= size.x;
 	
 	cl = screen->clipr;
-	screen->clipr = screen->r;
+	replclipr(screen, 0, screen->r);
 	string(screen, addpt(p, fe->ZP), fe->colors[color], ZP, f, text);
-	screen->clipr = cl;
+	replclipr(screen, 0, cl);
 }
 
 static void