From cc4c5299c0b2c1b9d92f9cdf88140735519f32f8 Mon Sep 17 00:00:00 2001
From: Caolán McNamara <caolanm@redhat.com>
Date: Tue, 10 Jan 2023 15:44:00 +0000
Subject: consider only CAIRO_CONTENT_ALPHA to be 1bit
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

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>
---
 vcl/headless/CairoCommon.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 }
-- 
cgit