From b5699cd01b6a52906880c107bac6f3802ea7353d Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 8 Feb 2017 16:18:32 +0200 Subject: convert BmpConversion to scoped enum and drop unused 4BIT_TRANS and 1BIT_MATRIX enumerators Also fix a bug in x11::convertBitmapDepth where we were incorrectly passing BmpConversion enumeratirs to ReduceColors Change-Id: I903c6866750e46ee752e10a17c05fcaaf6b11242 Reviewed-on: https://gerrit.libreoffice.org/34062 Tested-by: Jenkins Reviewed-by: Noel Grandin --- drawinglayer/source/processor2d/vclprocessor2d.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drawinglayer') diff --git a/drawinglayer/source/processor2d/vclprocessor2d.cxx b/drawinglayer/source/processor2d/vclprocessor2d.cxx index b47d09fdf8d3..58a1801a0d1d 100644 --- a/drawinglayer/source/processor2d/vclprocessor2d.cxx +++ b/drawinglayer/source/processor2d/vclprocessor2d.cxx @@ -457,7 +457,7 @@ namespace drawinglayer // a bitmap in gray or Black/White (!) if(aBitmapEx.GetBitCount() < 24) { - aBitmapEx.Convert(BMP_CONVERSION_24BIT); + aBitmapEx.Convert(BmpConversion::N24Bit); } aBitmapEx.Scale(aNeededBitmapSizePixel, BmpScaleFlag::Interpolate); -- cgit