summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2020-12-06 14:44:23 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2020-12-06 14:44:23 +0100
commitbf2a6f786502026ce4229bc84a6a22e5e55a7c13 (patch)
treee2532c1ed03027dd7003d30299dbc6cd5840a8c3
parent082560fd5b48ff4b8c0f6c9b093c86ddf75052f6 (diff)
downloadplan9front-bf2a6f786502026ce4229bc84a6a22e5e55a7c13.tar.xz
rio: use libdraw's badrect() to exclude some extreme cases in goodrect()
-rw-r--r--sys/src/cmd/rio/wctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/rio/wctl.c b/sys/src/cmd/rio/wctl.c
index 22f7b501c..bef98fda9 100644
--- a/sys/src/cmd/rio/wctl.c
+++ b/sys/src/cmd/rio/wctl.c
@@ -88,7 +88,7 @@ static char *params[] = {
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))