summaryrefslogtreecommitdiff
path: root/platform/x11/pdfapp.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2018-11-09 17:24:01 +0100
committerTor Andersson <tor.andersson@artifex.com>2018-11-09 17:24:01 +0100
commit1b9490577c2a3a27ccd89a98cce614719660f78a (patch)
treec1f60e91502aa3c5bfef7f4cd10ebe91485116f7 /platform/x11/pdfapp.c
parentb1e19b3dfce37ac9dc300eeb5ce13bc86560a777 (diff)
downloadmupdf-1b9490577c2a3a27ccd89a98cce614719660f78a.tar.xz
Fix 697461: Use floating point resolution in mupdf-x11.
Fitting the page to the screen needs more precision than an integer DPI.
Diffstat (limited to 'platform/x11/pdfapp.c')
-rw-r--r--platform/x11/pdfapp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/x11/pdfapp.c b/platform/x11/pdfapp.c
index 593c9719..0291c8d7 100644
--- a/platform/x11/pdfapp.c
+++ b/platform/x11/pdfapp.c
@@ -881,7 +881,7 @@ static void pdfapp_showpage(pdfapp_t *app, int loadpage, int drawpage, int repai
char buf2[64];
size_t len;
- sprintf(buf2, " - %d/%d (%d dpi)",
+ sprintf(buf2, " - %d/%d (%g dpi)",
app->pageno, app->pagecount, app->resolution);
len = MAX_TITLE-strlen(buf2);
if (strlen(app->doctitle) > len)