diff options
author | Paul Gardiner <paul@glidos.net> | 2012-03-15 13:38:47 +0000 |
---|---|---|
committer | Paul Gardiner <paul@glidos.net> | 2012-04-25 12:13:51 +0100 |
commit | 63fc310d23f3fd3b54739a44208f3317add18caf (patch) | |
tree | af852f3b5659e1f7c9862330f77716d7a8866fec | |
parent | 96a87dc0d4df044da91b40252d85ceaa832eaa9c (diff) | |
download | mupdf-63fc310d23f3fd3b54739a44208f3317add18caf.tar.xz |
Remove use of uninialized context.
Harmless, since the context wasn't used, but confusing.
-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; |