diff options
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/opengl/scale.cxx | 4 | ||||
-rw-r--r-- | vcl/qa/cppunit/graphicfilter/filters-test.cxx | 2 | ||||
-rw-r--r-- | vcl/source/gdi/bitmap3.cxx | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/vcl/opengl/scale.cxx b/vcl/opengl/scale.cxx index 4703c1f34098..01a9963d9e7d 100644 --- a/vcl/opengl/scale.cxx +++ b/vcl/opengl/scale.cxx @@ -203,13 +203,13 @@ bool OpenGLSalBitmap::ImplScale( const double& rScaleX, const double& rScaleY, s { return ImplScaleFilter( rScaleX, rScaleY, GL_LINEAR ); } - else if( nScaleFlag == BMP_SCALE_SUPER ) + else if( nScaleFlag == BMP_SCALE_SUPER || nScaleFlag == BMP_SCALE_DEFAULT ) { const Lanczos3Kernel aKernel; return ImplScaleConvolution( rScaleX, rScaleY, aKernel ); } - else if( nScaleFlag == BMP_SCALE_LANCZOS ) + else if( nScaleFlag == BMP_SCALE_LANCZOS || nScaleFlag == BMP_SCALE_BESTQUALITY ) { const Lanczos3Kernel aKernel; diff --git a/vcl/qa/cppunit/graphicfilter/filters-test.cxx b/vcl/qa/cppunit/graphicfilter/filters-test.cxx index 48b1045f14b7..0b04dbf0e9ef 100644 --- a/vcl/qa/cppunit/graphicfilter/filters-test.cxx +++ b/vcl/qa/cppunit/graphicfilter/filters-test.cxx @@ -62,7 +62,7 @@ bool VclFiltersTest::load(const OUString &, void VclFiltersTest::testScaling() { - for (unsigned int i = BMP_SCALE_FAST; i <= BMP_SCALE_BOX; i++) + for (unsigned int i = BMP_SCALE_NONE + 1; i <= BMP_SCALE_BOX; i++) { Bitmap aBitmap( Size( 413, 409 ), 24 ); BitmapEx aBitmapEx( aBitmap ); diff --git a/vcl/source/gdi/bitmap3.cxx b/vcl/source/gdi/bitmap3.cxx index 1a7e1cf6df3d..38816e480b37 100644 --- a/vcl/source/gdi/bitmap3.cxx +++ b/vcl/source/gdi/bitmap3.cxx @@ -927,6 +927,7 @@ bool Bitmap::Scale( const double& rScaleX, const double& rScaleY, sal_uInt32 nSc break; } case BMP_SCALE_SUPER: + case BMP_SCALE_DEFAULT: { if (GetSizePixel().Width() < 2 || GetSizePixel().Height() < 2) { @@ -941,6 +942,7 @@ bool Bitmap::Scale( const double& rScaleX, const double& rScaleY, sal_uInt32 nSc break; } case BMP_SCALE_LANCZOS : + case BMP_SCALE_BESTQUALITY: { const Lanczos3Kernel kernel; |