ref: d28f26c660139ae532df58017ac14a8adb530b2f
parent: 4e1f5567e27a08083e83029cf3f09a12e9244ff5
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Dec 6 09:44:23 EST 2020
rio: use libdraw's badrect() to exclude some extreme cases in goodrect()
--- a/sys/src/cmd/rio/wctl.c
+++ b/sys/src/cmd/rio/wctl.c
@@ -88,7 +88,7 @@
int
goodrect(Rectangle r)
{- if(!eqrect(canonrect(r), r))
+ if(badrect(r) || !eqrect(canonrect(r), r))
return 0;
/* reasonable sizes only please */
if(Dx(r) > BIG*Dx(screen->r))
--
⑨