Plan 9 from Bell Labs’s /usr/web/sources/contrib/yk/dist/9legacy/applied/libframe-noredraw.diff

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


--- /n/sources/plan9/sys/include/frame.h	Wed Nov 28 01:16:57 2007
+++ /sys/include/frame.h	Sat Mar  5 00:00:00 2016
@@ -49,6 +49,7 @@
 	Image		*tick;	/* typing tick */
 	Image		*tickback;	/* saved image under tick */
 	int			ticked;	/* flag: is tick onscreen? */
+	int			noredraw;	/* don't draw on the screen */
 };
 
 ulong	frcharofpt(Frame*, Point);
--- /n/sources/plan9/sys/src/libframe/frdraw.c	Wed Nov 28 01:17:04 2007
+++ /sys/src/libframe/frdraw.c	Sat Mar  5 00:00:00 2016
@@ -14,9 +14,8 @@
 
 	for(nb=0,b=f->box; nb<f->nbox; nb++, b++){
 		_frcklinewrap(f, &pt, b);
-		if(b->nrune >= 0){
+		if(!f->noredraw && b->nrune >= 0)
 			stringbg(f->b, pt, text, ZP, f->font, (char*)b->ptr, back, ZP);
-		}
 		pt.x += b->wid;
 	}
 }

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].