ref: 84851b33cf783f899568b1cce1b249e8444a33f2
parent: 31c3941e872f71664ed9f0bc71341c38ec515dc2
author: cinap_lenrek <[email protected]>
date: Sat Mar 12 17:01:43 EST 2016
libdraw: remove flushimage calls from fontresize() and loadchar()
--- a/sys/src/libdraw/font.c
+++ b/sys/src/libdraw/font.c
@@ -296,7 +296,6 @@
c->left = fi->left;
if(f->display == nil)
return 1;
- flushimage(f->display, 0); /* flush any pending errors */
b = bufimage(f->display, 37);
if(b == nil)
return 0;
@@ -340,7 +339,6 @@
fprint(2, "font cache resize failed: %r\n");
goto Return;
}
- flushimage(d, 0); /* flush any pending errors */
b = bufimage(d, 1+4+4+1);
if(b == nil){
freeimage(new);
@@ -350,11 +348,6 @@
BPLONG(b+1, new->id);
BPLONG(b+5, ncache);
b[9] = f->ascent;
- if(flushimage(d, 0) < 0){
- fprint(2, "resize: init failed: %r\n");
- freeimage(new);
- goto Return;
- }
freeimage(f->cacheimage);
f->cacheimage = new;
Nodisplay: