summaryrefslogtreecommitdiff
path: root/apps/win_main.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2011-12-15 00:43:54 +0000
committerRobin Watts <robin.watts@artifex.com>2011-12-15 00:43:54 +0000
commitba4cca2c65677aeffb088117169abbc12ebec3fc (patch)
tree08379a140cd14f2164114d43a722fabf111a0fff /apps/win_main.c
parent313e8f82816c839b3de47e1137a91414bb95a327 (diff)
downloadmupdf-ba4cca2c65677aeffb088117169abbc12ebec3fc.tar.xz
Remove 'soft limit' on pixmaps in favour of fz_store.
Change the fz_store to be limited to 256 Megs. Remove the soft limit for pixmaps; the store will automatically throw old resources away to stay below the limit.
Diffstat (limited to 'apps/win_main.c')
-rw-r--r--apps/win_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/win_main.c b/apps/win_main.c
index 0af83aec..7223f4e6 100644
--- a/apps/win_main.c
+++ b/apps/win_main.c
@@ -831,7 +831,7 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShow
fz_accelerate();
- ctx = fz_new_context(&fz_alloc_default, FZ_STORE_UNLIMITED);
+ ctx = fz_new_context(&fz_alloc_default, 256<<20);
if (!ctx)
{
fprintf(stderr, "cannot initialise context\n");