summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/win_main.c5
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;