summaryrefslogtreecommitdiff
path: root/ios
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2012-01-11 23:26:49 +0100
committerTor Andersson <tor.andersson@artifex.com>2012-01-11 23:26:49 +0100
commit209f30bee3121bbae32799b0bbb10f5e6db4158c (patch)
treeba20a47f0bfb0370525a4ee84e98fa136202fc82 /ios
parentbe1ed0692b49bc86ce512edc837fefc601d42443 (diff)
downloadmupdf-209f30bee3121bbae32799b0bbb10f5e6db4158c.tar.xz
Hide glyph cache in context.
Diffstat (limited to 'ios')
-rw-r--r--ios/main.m7
1 files changed, 2 insertions, 5 deletions
diff --git a/ios/main.m b/ios/main.m
index 612ca6b2..582d4e88 100644
--- a/ios/main.m
+++ b/ios/main.m
@@ -16,7 +16,6 @@
#define SEARCH_W (width - GAP - 170)
static dispatch_queue_t queue;
-static fz_glyph_cache *glyphcache = NULL;
static float screenScale = 1;
static fz_context *ctx = NULL;
@@ -219,7 +218,7 @@ static UIImage *renderPage(struct document *doc, int number, CGSize screenSize)
pix = fz_new_pixmap_with_rect(ctx, fz_device_rgb, bbox);
fz_clear_pixmap_with_color(pix, 255);
- dev = fz_new_draw_device(ctx, glyphcache, pix);
+ dev = fz_new_draw_device(ctx, pix);
draw_page(doc, number, dev, ctm, NULL);
fz_free_device(dev);
@@ -256,7 +255,7 @@ static UIImage *renderTile(struct document *doc, int number, CGSize screenSize,
pix = fz_new_pixmap_with_rect(ctx, fz_device_rgb, bbox);
fz_clear_pixmap_with_color(pix, 255);
- dev = fz_new_draw_device(ctx, glyphcache, pix);
+ dev = fz_new_draw_device(ctx, pix);
draw_page(doc, number, dev, ctm, NULL);
fz_free_device(dev);
@@ -1388,8 +1387,6 @@ static UIImage *renderTile(struct document *doc, int number, CGSize screenSize,
// use at most 128M for resource cache
ctx = fz_new_context(NULL, 128<<20);
- glyphcache = fz_new_glyph_cache(ctx);
-
screenScale = [[UIScreen mainScreen] scale];
library = [[MuLibraryController alloc] initWithStyle: UITableViewStylePlain];