summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2016-07-24 22:14:27 +0900
committerTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2016-11-16 11:10:27 +0100
commita0e083bb012aa4227dd485effdd6061666ad1b42 (patch)
tree62c8d9d24990c0a65daa284364bb8536680f3264
parentf83b3a63d8e53f789f341c9969b1f191e09c5667 (diff)
vcl: use same bitdepth when performing super scaling
Change-Id: I379c4aa9aa83470961fa972eec8cdb67261f749c
-rw-r--r--vcl/source/bitmap/bitmapscalesuper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/bitmap/bitmapscalesuper.cxx b/vcl/source/bitmap/bitmapscalesuper.cxx
index ff01aaebdab5..ddb3a855d189 100644
--- a/vcl/source/bitmap/bitmapscalesuper.cxx
+++ b/vcl/source/bitmap/bitmapscalesuper.cxx
@@ -937,7 +937,7 @@ bool BitmapScaleSuper::filter(Bitmap& rBitmap)
Bitmap::ScopedReadAccess pReadAccess(rBitmap);
- Bitmap aOutBmp(Size(nDstW, nDstH), 24);
+ Bitmap aOutBmp(Size(nDstW, nDstH), rBitmap.GetBitCount());
Bitmap::ScopedWriteAccess pWriteAccess(aOutBmp);
const long nStartY = 0;