summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArik Devens <arik@src.gnome.org>2001-01-31 23:20:37 +0000
committerArik Devens <arik@src.gnome.org>2001-01-31 23:20:37 +0000
commitec198c1242d78939682984fab89671aee7cbfeb4 (patch)
tree33b283a4254eac70b8eca788dbaf8363a3802313
parent140b9c15b1233ae0b27e60cef1909488a2576da0 (diff)
downloadnautilus-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--ChangeLog8
-rw-r--r--librsvg/rsvg-ft.c3
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 4cdabb25b..eb65fa73a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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);
}