summaryrefslogtreecommitdiff
path: root/apps/x11_main.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2012-03-13 12:40:09 +0100
committerTor Andersson <tor.andersson@artifex.com>2012-03-13 12:54:51 +0100
commit9cbfb766564d0e80d259e3e0a919d72a75bbb6ee (patch)
treeb414efb4a9e5a286664270d9f98ad0c8d8467eda /apps/x11_main.c
parent1f766b618e418b5a4d4e146506b75c89b6c416fb (diff)
downloadmupdf-9cbfb766564d0e80d259e3e0a919d72a75bbb6ee.tar.xz
Split XPS header. Update Makefile dependencies. Add pixmap w/h accessors.
Diffstat (limited to 'apps/x11_main.c')
-rw-r--r--apps/x11_main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/x11_main.c b/apps/x11_main.c
index fe0196fc..0d7d6375 100644
--- a/apps/x11_main.c
+++ b/apps/x11_main.c
@@ -249,9 +249,8 @@ void winhelp(pdfapp_t *app)
void winresize(pdfapp_t *app, int w, int h)
{
- 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);
XWindowChanges values;
int mask, width, height;