diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-06-26 16:56:21 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-06-27 10:04:36 +0200 |
commit | 22ab4f30ac2125579c43ad889f7b8b45b1dda3e3 (patch) | |
tree | 94babdffd86dcb0fe6ae7ca80483f1af84da1805 /desktop | |
parent | aa86e7e8c22527eb5da0b8a05dbd4bd749f7a2b8 (diff) |
add an --enable-cairo-rgba to set the order of pixels for internal cairo
Change-Id: Ieab2ef59f63a7722bffea3273d2eeefadef47b56
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153628
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/lib/init.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 074a5b81b1ad..4311b501ad16 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -9,6 +9,7 @@ #include <sfx2/lokhelper.hxx> #include <config_buildconfig.h> +#include <config_cairo_rgba.h> #include <config_features.h> #include <stdio.h> @@ -4229,7 +4230,11 @@ static void doc_paintPartTile(LibreOfficeKitDocument* pThis, static int doc_getTileMode(SAL_UNUSED_PARAMETER LibreOfficeKitDocument* /*pThis*/) { SetLastExceptionMsg(); +#if ENABLE_CAIRO_RGBA + return LOK_TILEMODE_RGBA; +#else return LOK_TILEMODE_BGRA; +#endif } static void doc_getDocumentSize(LibreOfficeKitDocument* pThis, |