diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2021-12-09 13:04:36 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2021-12-10 11:02:00 +0100 |
commit | a78040cabc6878e06e7519d6d53a0ef6e5c4d658 (patch) | |
tree | 7c4b60b98d95dc5cb7db0759e4c0614576d3613d /vcl/skia/salbmp.cxx | |
parent | 6565f0d23737868fbbd1aa78c08223dd255e1924 (diff) |
don't use 32bit Skia bitmaps if not configured so
Change-Id: Ic7781f799d0d4baef01955f03ace8428b6d9f229
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126584
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'vcl/skia/salbmp.cxx')
-rw-r--r-- | vcl/skia/salbmp.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/skia/salbmp.cxx b/vcl/skia/salbmp.cxx index 32545963db1b..7b5d05007129 100644 --- a/vcl/skia/salbmp.cxx +++ b/vcl/skia/salbmp.cxx @@ -61,7 +61,11 @@ SkiaSalBitmap::SkiaSalBitmap(const sk_sp<SkImage>& image) ResetAllData(); mImage = image; mPalette = BitmapPalette(); +#if SKIA_USE_BITMAP32 mBitCount = 32; +#else + mBitCount = 24; +#endif mSize = mPixelsSize = Size(image->width(), image->height()); ComputeScanlineSize(); mAnyAccessCount = 0; |