diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-06-26 16:56:21 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2023-07-05 12:56:03 +0200 |
commit | ad65368380f49d8cfd111ea393243fa4d4888afb (patch) | |
tree | acf2c714c7e4c2fff436cc7e77a0464b3fc08c0d /desktop | |
parent | 6417fbe4a71dc6bb7d5edac5ed3f01c4ab38ca9c (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/+/153633
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@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 8448209e87b5..e8586fb5af7e 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> @@ -4213,7 +4214,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, |