summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config_host/config_vcl.h.in14
-rw-r--r--configure.ac13
-rw-r--r--include/vcl/outdev.hxx2
3 files changed, 29 insertions, 0 deletions
diff --git a/config_host/config_vcl.h.in b/config_host/config_vcl.h.in
new file mode 100644
index 000000000000..01d2cfdc59aa
--- /dev/null
+++ b/config_host/config_vcl.h.in
@@ -0,0 +1,14 @@
+/*
+
+Settings about vcl
+*/
+
+#ifndef CONFIG_VCL_H
+#define CONFIG_VCL_H
+
+/* nature of the device pixel coordinate system
+ * either use sal_Int32 or double for coordinates
+ */
+#define VCL_FLOAT_DEVICE_PIXEL 0
+
+#endif
diff --git a/configure.ac b/configure.ac
index e1eda25eddd5..c3373853f1df 100644
--- a/configure.ac
+++ b/configure.ac
@@ -10077,6 +10077,18 @@ if ! "$TOUCH" -h warn 2>/dev/null > /dev/null; then
fi
dnl ===================================================================
+dnl Set vcl option: coordinate device in double or sal_Int32
+dnl ===================================================================
+
+AC_MSG_CHECKING([Type to use for Device Pixel coordinates])
+if test "$_os" = "Darwin" -o $_os = iOS ; then
+ AC_DEFINE(VCL_FLOAT_DEVICE_PIXEL)
+ AC_MSG_RESULT([double])
+else
+ AC_MSG_RESULT([sal_Int32])
+fi
+
+dnl ===================================================================
dnl Test which vclplugs have to be built.
dnl ===================================================================
R=""
@@ -13053,6 +13065,7 @@ AC_CONFIG_HEADERS([config_host/config_options.h])
AC_CONFIG_HEADERS([config_host/config_test.h])
AC_CONFIG_HEADERS([config_host/config_telepathy.h])
AC_CONFIG_HEADERS([config_host/config_typesizes.h])
+AC_CONFIG_HEADERS([config_host/config_vcl.h])
AC_CONFIG_HEADERS([config_host/config_vclplug.h])
AC_CONFIG_HEADERS([config_host/config_version.h])
AC_CONFIG_HEADERS([config_host/config_oauth2.h])
diff --git a/include/vcl/outdev.hxx b/include/vcl/outdev.hxx
index 08ecaa7693db..f251db3da6e5 100644
--- a/include/vcl/outdev.hxx
+++ b/include/vcl/outdev.hxx
@@ -20,6 +20,8 @@
#ifndef INCLUDED_VCL_OUTDEV_HXX
#define INCLUDED_VCL_OUTDEV_HXX
+#include <config_vcl.h>
+
#include <tools/gen.hxx>
#include <tools/solar.h>
#include <tools/rc.hxx>