summaryrefslogtreecommitdiffstats
path: root/gfx
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-05-21 16:22:51 +0000
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-05-23 16:13:14 +0200
commit44de3c3023f40686d1cc46c8074e7b04d6832966 (patch)
treea419644f751baab31870e8edce9e67f6c3eb3193 /gfx
parenta3124c55a13fba4877e0eaa7a6b31f17832b6ce1 (diff)
downloadUXP-44de3c3023f40686d1cc46c8074e7b04d6832966.tar
UXP-44de3c3023f40686d1cc46c8074e7b04d6832966.tar.gz
UXP-44de3c3023f40686d1cc46c8074e7b04d6832966.tar.lz
UXP-44de3c3023f40686d1cc46c8074e7b04d6832966.tar.xz
UXP-44de3c3023f40686d1cc46c8074e7b04d6832966.zip
[printing] Fix build bustage with --disable-printing
Diffstat (limited to 'gfx')
-rw-r--r--gfx/thebes/PrintTargetWindows.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/gfx/thebes/PrintTargetWindows.cpp b/gfx/thebes/PrintTargetWindows.cpp
index 4f22adacf..5867a4772 100644
--- a/gfx/thebes/PrintTargetWindows.cpp
+++ b/gfx/thebes/PrintTargetWindows.cpp
@@ -26,6 +26,7 @@ PrintTargetWindows::PrintTargetWindows(cairo_surface_t* aCairoSurface,
/* static */ already_AddRefed<PrintTargetWindows>
PrintTargetWindows::CreateOrNull(HDC aDC)
{
+#ifdef NS_PRINTING
// Figure out the cairo surface size - Windows we need to use the printable
// area of the page. Note: we only scale the printing using the LOGPIXELSY,
// so we use that when calculating the surface width as well as the height.
@@ -51,6 +52,9 @@ PrintTargetWindows::CreateOrNull(HDC aDC)
new PrintTargetWindows(surface, size, aDC);
return target.forget();
+#else
+ return nullptr;
+#endif
}
nsresult