summaryrefslogtreecommitdiff
path: root/vcl/headless
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2019-09-24 21:38:51 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-09-26 03:04:01 +0200
commit78b9dac2ee77bf6efc1298962cbeca284db5b00a (patch)
tree120d13b666f6d2a67a4e79b5dd05b65a13bd2458 /vcl/headless
parent3a7d479c4c852499e8e4e2bc4273f02aec5051be (diff)
remove internal use of 16-bit packed formats
none of our supported hardware uses these any more Change-Id: Ic95d6df619a05df0bec1f5870596cb2bb3bcc6cb Reviewed-on: https://gerrit.libreoffice.org/79476 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/headless')
-rw-r--r--vcl/headless/svpbmp.cxx17
1 files changed, 0 insertions, 17 deletions
diff --git a/vcl/headless/svpbmp.cxx b/vcl/headless/svpbmp.cxx
index 0ae01dbb2c9f..6dd5aeb64bfb 100644
--- a/vcl/headless/svpbmp.cxx
+++ b/vcl/headless/svpbmp.cxx
@@ -49,7 +49,6 @@ static std::unique_ptr<BitmapBuffer> ImplCreateDIB(
|| nBitCount == 1
|| nBitCount == 4
|| nBitCount == 8
- || nBitCount == 16
|| nBitCount == 24
|| nBitCount == 32)
&& "Unsupported BitCount!");
@@ -81,22 +80,6 @@ static std::unique_ptr<BitmapBuffer> ImplCreateDIB(
case 8:
pDIB->mnFormat = ScanlineFormat::N8BitPal;
break;
- case 16:
- {
-#ifdef OSL_BIGENDIAN
- pDIB->mnFormat= ScanlineFormat::N16BitTcMsbMask;
-#else
- pDIB->mnFormat= ScanlineFormat::N16BitTcLsbMask;
-#endif
- ColorMaskElement aRedMask(0xf800);
- aRedMask.CalcMaskShift();
- ColorMaskElement aGreenMask(0x07e0);
- aGreenMask.CalcMaskShift();
- ColorMaskElement aBlueMask(0x001f);
- aBlueMask.CalcMaskShift();
- pDIB->maColorMask = ColorMask(aRedMask, aGreenMask, aBlueMask);
- break;
- }
case 24:
pDIB->mnFormat = SVP_24BIT_FORMAT;
break;