diff options
author | Arik Devens <arik@src.gnome.org> | 2001-01-31 23:20:37 +0000 |
---|---|---|
committer | Arik Devens <arik@src.gnome.org> | 2001-01-31 23:20:37 +0000 |
commit | ec198c1242d78939682984fab89671aee7cbfeb4 (patch) | |
tree | 33b283a4254eac70b8eca788dbaf8363a3802313 /librsvg | |
parent | 140b9c15b1233ae0b27e60cef1909488a2576da0 (diff) | |
download | nautilus-ec198c1242d78939682984fab89671aee7cbfeb4.tar.gz |
Updated insert function to evict everytime we are above the cache 'limit' not just when adding the glyph would put us above.
Diffstat (limited to 'librsvg')
-rw-r--r-- | librsvg/rsvg-ft.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/librsvg/rsvg-ft.c b/librsvg/rsvg-ft.c index c2a24ac6b..f551d38c9 100644 --- a/librsvg/rsvg-ft.c +++ b/librsvg/rsvg-ft.c @@ -264,8 +264,7 @@ rsvg_ft_glyph_insert (RsvgFTCtx *ctx, const RsvgFTGlyphDesc *desc, ctx->glyph_bytes += rsvg_ft_glyph_bytes (glyph); - if ((ctx->glyph_bytes < ctx->glyph_bytes_max) && - (ctx->glyph_bytes + rsvg_ft_glyph_bytes (glyph) >= ctx->glyph_bytes_max)) { + if (ctx->glyph_bytes + rsvg_ft_glyph_bytes (glyph) >= ctx->glyph_bytes_max) { rsvg_ft_glyph_evict (ctx, ctx->glyph_bytes + rsvg_ft_glyph_bytes (glyph) - ctx->glyph_bytes_max); } |