summaryrefslogtreecommitdiff
path: root/render/glyphcache.c
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2004-11-19 08:49:17 +0100
committerTor Andersson <tor@ghostscript.com>2004-11-19 08:49:17 +0100
commit4c164469d43cf248e72d384137d59fbd7204afcb (patch)
treee471da0d278bfe8fca6ac1cc40747c357414bc36 /render/glyphcache.c
parentd5a8ffc6e88c7853169b972ee94286702b214c6b (diff)
downloadmupdf-4c164469d43cf248e72d384137d59fbd7204afcb.tar.xz
rewrite of render loop part 1
Diffstat (limited to 'render/glyphcache.c')
-rw-r--r--render/glyphcache.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/render/glyphcache.c b/render/glyphcache.c
index 1d3b8117..a5f9f2b6 100644
--- a/render/glyphcache.c
+++ b/render/glyphcache.c
@@ -37,7 +37,7 @@ struct fz_val_s
{
fz_hash *ent;
unsigned char *data;
- short w, h, lsb, top;
+ short w, h, x, y;
int uses;
};
@@ -239,7 +239,7 @@ fz_debugglyphcache(fz_glyphcache *arena)
k->c / 65536.0,
k->d / 65536.0,
k->e, k->f,
- b->w, b->h, b->lsb, b->top);
+ b->w, b->h, b->x, b->y);
}
}
@@ -319,8 +319,8 @@ fz_renderglyph(fz_glyphcache *arena, fz_glyph *glyph, fz_font *font, int cid, fz
val->uses ++;
glyph->w = val->w;
glyph->h = val->h;
- glyph->lsb = val->lsb;
- glyph->top = val->top;
+ glyph->x = val->x;
+ glyph->y = val->y;
glyph->bitmap = val->data;
bubble(arena, val - arena->lru);
@@ -354,8 +354,8 @@ fz_renderglyph(fz_glyphcache *arena, fz_glyph *glyph, fz_font *font, int cid, fz
val->uses = 0;
val->w = glyph->w;
val->h = glyph->h;
- val->lsb = glyph->lsb;
- val->top = glyph->top;
+ val->x = glyph->x;
+ val->y = glyph->y;
val->data = arena->buffer + arena->used;
arena->used += size;