rio: use libdraw's badrect() to exclude some extreme cases in goodrect()

This commit is contained in:
cinap_lenrek 2020-12-06 14:44:23 +01:00
parent 082560fd5b
commit bf2a6f7865

View file

@ -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))