diff options
author | Caolán McNamara <caolanm@redhat.com> | 2023-01-10 15:44:00 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2023-01-11 10:33:38 +0000 |
commit | cc4c5299c0b2c1b9d92f9cdf88140735519f32f8 (patch) | |
tree | 7738708c788fe8eacbd3f3c100e6f08b31e7e66b | |
parent | 071c66521c6db7136ea7f4606d48ab9fbcc4c71d (diff) |
consider only CAIRO_CONTENT_ALPHA to be 1bit
Change-Id: I0d09207c8131297e9c95c4e146ae62d5dac77be3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145287
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | vcl/headless/CairoCommon.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/headless/CairoCommon.cxx b/vcl/headless/CairoCommon.cxx index 12f42313081b..6552460cf5e6 100644 --- a/vcl/headless/CairoCommon.cxx +++ b/vcl/headless/CairoCommon.cxx @@ -402,7 +402,7 @@ cairo_user_data_key_t* CairoCommon::getDamageKey() sal_uInt16 CairoCommon::GetBitCount() const { - if (cairo_surface_get_content(m_pSurface) != CAIRO_CONTENT_COLOR_ALPHA) + if (cairo_surface_get_content(m_pSurface) == CAIRO_CONTENT_ALPHA) return 1; return 32; } |