diff options
author | Paul Gardiner <paul@glidos.net> | 2012-03-15 13:38:47 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2012-06-12 16:53:02 +0100 |
commit | 2dfb38a5d55737e0bfaca9af5f77f17b3bde8f41 (patch) | |
tree | 2e0402ba147b2d724dacfbe2f538b18ff8c8a704 /apps/win_main.c | |
parent | fca53ea2564708208b23afcc22ca9b4a4f2e12f6 (diff) | |
download | mupdf-2dfb38a5d55737e0bfaca9af5f77f17b3bde8f41.tar.xz |
Remove use of uninialized context.
Harmless, since the context wasn't used, but confusing.
Diffstat (limited to 'apps/win_main.c')
-rw-r--r-- | apps/win_main.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/win_main.c b/apps/win_main.c index 358b21bb..8f293beb 100644 --- a/apps/win_main.c +++ b/apps/win_main.c @@ -38,7 +38,6 @@ static pdfapp_t gapp; static wchar_t wbuf[1024]; static char filename[1024]; -static fz_context *context; /* * Create registry keys to associate MuPDF with PDF and XPS files. @@ -436,8 +435,8 @@ void winblit() { int image_w = fz_pixmap_width(gapp.ctx, gapp.image); int image_h = fz_pixmap_height(gapp.ctx, gapp.image); - int image_n = fz_pixmap_components(context, gapp.image); - unsigned char *samples = fz_pixmap_samples(context, gapp.image); + int image_n = fz_pixmap_components(gapp.ctx, gapp.image); + unsigned char *samples = fz_pixmap_samples(gapp.ctx, gapp.image); int x0 = gapp.panx; int y0 = gapp.pany; int x1 = gapp.panx + image_w; |