libdraw: do not force flushimage() on freescreen()

This causes visual flashes of white in rio. If it is
really needed (it is rare) it should be done by the caller.
This commit is contained in:
cinap_lenrek 2020-12-02 00:56:21 +01:00
parent 7d55aa8a32
commit 1bce6d0981

View file

@ -96,12 +96,6 @@ Error:
}
a[0] = 'F';
BPLONG(a+1, s->id);
/*
* flush(1) because screen is likely holding last reference to
* window, and want it to disappear visually.
*/
if(flushimage(d, 1) < 0)
goto Error;
free(s);
return 1;
}