ref: dd3a0f224d9472f4969c425980218e550d357eb0
parent: 4deb970743f110dc438bd8e082886a3bacc1e8e1
author: sirjofri <sirjofri@sirjofri.de>
date: Fri Jun 7 08:52:52 EDT 2024
fixes clipping for text drawing
--- a/plan9.c
+++ b/plan9.c
@@ -193,7 +193,6 @@
Font *f;
Point p, size;
frontend *fe = (frontend*)handle;
- Rectangle cl;
f = findfont(fe, fonttype, fontsize);
@@ -211,10 +210,7 @@
else if (align & ALIGN_HRIGHT)
p.x -= size.x;
- cl = screen->clipr;
- replclipr(screen, 0, screen->r);
string(screen, addpt(p, fe->ZP), fe->colors[color], ZP, f, text);
- replclipr(screen, 0, cl);
}
static void