aboutsummaryrefslogtreecommitdiffstats
path: root/testing/wkhtmltopdf/wkhtmltopdf-missing-setDevicePixelRatio.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/wkhtmltopdf/wkhtmltopdf-missing-setDevicePixelRatio.patch')
-rw-r--r--testing/wkhtmltopdf/wkhtmltopdf-missing-setDevicePixelRatio.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/testing/wkhtmltopdf/wkhtmltopdf-missing-setDevicePixelRatio.patch b/testing/wkhtmltopdf/wkhtmltopdf-missing-setDevicePixelRatio.patch
new file mode 100644
index 0000000000..2d81be583d
--- /dev/null
+++ b/testing/wkhtmltopdf/wkhtmltopdf-missing-setDevicePixelRatio.patch
@@ -0,0 +1,11 @@
+--- a/src/lib/multipageloader.cc.org 2017-02-13 16:39:31.915069019 -0700
++++ b/src/lib/multipageloader.cc 2017-02-13 16:37:39.343605883 -0700
+@@ -216,7 +216,7 @@
+
+ double devicePixelRatio = multiPageLoader.dpi / 96.; // The used version of WebKit always renders at 96 DPI when no zoom is applied. It does not fully support a device pixel ratio != 1 natively.
+ webPage.mainFrame()->setZoomFactor(devicePixelRatio * settings.zoomFactor); // Zoom in the page to achieve a higher DPI.
+- webPage.setDevicePixelRatio(devicePixelRatio); // Fix CSS media queries (does not affect anything else).
++// webPage.setDevicePixelRatio(devicePixelRatio); // Fix CSS media queries (does not affect anything else).
+ }
+
+ /*!