libdraw: dont abort() on failed allocimage in fontresize()

This commit is contained in:
cinap_lenrek 2011-11-10 16:54:02 +01:00
parent a11501b24f
commit db605e7bc8

View file

@ -365,7 +365,6 @@ fontresize(Font *f, int wid, int ncache, int depth)
new = allocimage(d, Rect(0, 0, ncache*wid, f->height), CHAN1(CGrey, depth), 0, 0);
if(new == nil){
fprint(2, "font cache resize failed: %r\n");
abort();
goto Return;
}
flushimage(d, 0); /* flush any pending errors */