diff options
author | Louis-Francis Ratté-Boulianne <lfrb@collabora.com> | 2014-11-03 22:51:15 -0500 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-11-10 07:58:57 +0100 |
commit | d8d9948b61819d302254014e04f14353a06a4c7a (patch) | |
tree | aa12cb836623b9956fe0f223860636cbe86a471f /vcl/source/gdi/bitmap3.cxx | |
parent | 037a6a4a3874256a18bbe06a4db9ec2b324e4da9 (diff) |
vcl: Allow SalBitmap implementation to do scaling
Change-Id: If4431fb276c9c2629acbc95aeff2ef7c4a683d86
Diffstat (limited to 'vcl/source/gdi/bitmap3.cxx')
-rw-r--r-- | vcl/source/gdi/bitmap3.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vcl/source/gdi/bitmap3.cxx b/vcl/source/gdi/bitmap3.cxx index 588dd0a2d50c..657c3ac2d863 100644 --- a/vcl/source/gdi/bitmap3.cxx +++ b/vcl/source/gdi/bitmap3.cxx @@ -27,6 +27,7 @@ #include <boost/scoped_array.hpp> +#include <impbmp.hxx> #include <impoct.hxx> #include <impvect.hxx> @@ -873,6 +874,12 @@ bool Bitmap::Scale( const double& rScaleX, const double& rScaleY, sal_uInt32 nSc bRetval = true; } + if( mpImpBmp && mpImpBmp->ImplScale( rScaleX, rScaleY, nScaleFlag ) ) + { + // implementation specific scaling + return true; + } + //fdo#33455 // //If we start with a 1 bit image, then after scaling it in any mode except |