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 | |
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.
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | librsvg/rsvg-ft.c | 3 |
2 files changed, 9 insertions, 2 deletions
@@ -1,3 +1,11 @@ +2001-01-31 Arik Devens <arik@eazel.com> + + reviewed by: Maciej Stachowiak <mjs@eazel.com> + + * librsvg/rsvg-ft.c: (rsvg_ft_glyph_insert): Updated to evict from + the cache whenever above the high water mark instead of only when + inserting would put you above the mark. + 2001-01-31 Darin Adler <darin@eazel.com> reviewed by: Michael Engber <engber@eazel.com> 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); } |