diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-03-12 22:01:43 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-03-12 22:01:43 +0100 |
commit | 84851b33cf783f899568b1cce1b249e8444a33f2 (patch) | |
tree | c9f5c5eb777b6f16b0e1c953b256b2e12adc1437 /sys/src/libdraw | |
parent | 31c3941e872f71664ed9f0bc71341c38ec515dc2 (diff) |
libdraw: remove flushimage calls from fontresize() and loadchar()
Diffstat (limited to 'sys/src/libdraw')
-rw-r--r-- | sys/src/libdraw/font.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/sys/src/libdraw/font.c b/sys/src/libdraw/font.c index 20eec17d3..60488f5a7 100644 --- a/sys/src/libdraw/font.c +++ b/sys/src/libdraw/font.c @@ -296,7 +296,6 @@ loadchar(Font *f, Rune r, Cacheinfo *c, int h, int noflush, char **subfontname) 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 @@ fontresize(Font *f, int wid, int ncache, int depth) 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 @@ fontresize(Font *f, int wid, int ncache, int depth) 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: |