diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2023-09-24 00:29:02 +1000 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2023-12-08 11:49:31 +0100 |
commit | 29df1afa1f439bf44a6be1b04ec0190e8f40abe2 (patch) | |
tree | 7985b4de7ec21e1bddbdaf848de70f0451a8641a /vcl/source/outdev | |
parent | 5ff64bfcf9bb8c27670c4cb44a778105008407ed (diff) |
tdf#43157 vcl: remove DBG_ASSERT() from DrawDeviceAlphaBitmapSlowPath()
Change-Id: I6c120eb2bb8999276103f50bf3679366b6ee86ae
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157189
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl/source/outdev')
-rw-r--r-- | vcl/source/outdev/bitmap.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/outdev/bitmap.cxx b/vcl/source/outdev/bitmap.cxx index c6855909d312..86ac23137562 100644 --- a/vcl/source/outdev/bitmap.cxx +++ b/vcl/source/outdev/bitmap.cxx @@ -653,8 +653,8 @@ void OutputDevice::DrawDeviceAlphaBitmapSlowPath(const Bitmap& rBitmap, BitmapScopedReadAccess pBitmapReadAccess(rBitmap); BitmapScopedReadAccess pAlphaReadAccess(rAlpha); - DBG_ASSERT( pAlphaReadAccess->GetScanlineFormat() == ScanlineFormat::N8BitPal, - "OutputDevice::ImplDrawAlpha(): non-8bit alpha no longer supported!" ); + SAL_WARN_IF(pAlphaReadAccess->GetScanlineFormat() != ScanlineFormat::N8BitPal, "vcl.gdi", "non-8bit alpha no longer supported!"); + assert(pAlphaReadAccess->GetScanlineFormat() == ScanlineFormat::N8BitPal); // #i38887# reading from screen may sometimes fail if (aBmp.ImplGetSalBitmap()) |