Plan 9 from Bell Labs’s /usr/web/sources/contrib/uriel/changes/2005/1231/3

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


Try to avoid nibbling on window borders.
 [rsc] --rw-rw-r-- M 12721 glenda sys 3366 Dec 31 16:07 sys/src/libframe/frdraw.c
	/n/sourcesdump/2005/1231/plan9/sys/src/libframe/frdraw.c:125,130 - 
	/n/sourcesdump/2006/0101/plan9/sys/src/libframe/frdraw.c:125,133
	  		return;
	  	pt.x--;	/* looks best just left of where requested */
	  	r = Rect(pt.x, pt.y, pt.x+FRTICKW, pt.y+f->font->height);
	+ 	/* can go into left border but not right */
	+ 	if(r.max.x > f->r.max.x)
	+ 		r.max.x = f->r.max.x;
	  	if(ticked){
	  		draw(f->tickback, f->tickback->r, f->b, nil, pt);
	  		draw(f->b, r, f->tick, nil, ZP);
 [rsc] --rw-rw-r-- M 12721 glenda sys 3366 Dec 31 16:07 sys/src/libframe/frdraw.c


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].