rio: use libdraw's badrect() to exclude some extreme cases in goodrect()
This commit is contained in:
parent
082560fd5b
commit
bf2a6f7865
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue