summaryrefslogtreecommitdiff
path: root/vcl/headless
diff options
context:
space:
mode:
authorNoel <noel.grandin@collabora.co.uk>2021-03-31 14:32:02 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-03-31 17:38:04 +0200
commit740757d17452e3b2f9bfa7897c05dedeca639e34 (patch)
tree653ebc09c09e53fd9d94863bc057d43a1a163c5b /vcl/headless
parentb5558e4ac6c2f134f07ea87a143694b17adb4482 (diff)
remove internal 4bit scanline formats
since we have already removed the 4-bit internal bitmap formats. Change-Id: Ie481aaa8e25642a47e30beb6f37e2d3beda304e9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113412 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/headless')
-rw-r--r--vcl/headless/svpbmp.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/vcl/headless/svpbmp.cxx b/vcl/headless/svpbmp.cxx
index 7dfa5a89eb41..4524478078ac 100644
--- a/vcl/headless/svpbmp.cxx
+++ b/vcl/headless/svpbmp.cxx
@@ -81,21 +81,18 @@ static std::unique_ptr<BitmapBuffer> ImplCreateDIB(
case 1:
pDIB->mnFormat = ScanlineFormat::N1BitLsbPal;
break;
- case 4:
- pDIB->mnFormat = ScanlineFormat::N4BitMsnPal;
- break;
case 8:
pDIB->mnFormat = ScanlineFormat::N8BitPal;
break;
case 24:
pDIB->mnFormat = SVP_24BIT_FORMAT;
break;
- default:
- nBitCount = 32;
- [[fallthrough]];
case 32:
pDIB->mnFormat = SVP_CAIRO_FORMAT;
break;
+ default:
+ assert(false);
+ pDIB->mnFormat = SVP_CAIRO_FORMAT;
}
pDIB->mnFormat |= ScanlineFormat::TopDown;