diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2012-03-13 12:40:09 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2012-03-13 12:54:51 +0100 |
commit | 9cbfb766564d0e80d259e3e0a919d72a75bbb6ee (patch) | |
tree | b414efb4a9e5a286664270d9f98ad0c8d8467eda /apps/win_main.c | |
parent | 1f766b618e418b5a4d4e146506b75c89b6c416fb (diff) | |
download | mupdf-9cbfb766564d0e80d259e3e0a919d72a75bbb6ee.tar.xz |
Split XPS header. Update Makefile dependencies. Add pixmap w/h accessors.
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 3417a11e..b8a18535 100644 --- a/apps/win_main.c +++ b/apps/win_main.c @@ -355,9 +355,8 @@ void winblitsearch() void winblit() { - fz_bbox bb = fz_bound_pixmap(gapp.image); - int image_w = bb.x1-bb.x0; - int image_h = bb.y1-bb.y0; + 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_pixels(context, gapp.image); int x0 = gapp.panx; |