diff options
Diffstat (limited to 'vcl/opengl/scale.cxx')
-rw-r--r-- | vcl/opengl/scale.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/opengl/scale.cxx b/vcl/opengl/scale.cxx index 6459933cb81b..ae7146b6d6bf 100644 --- a/vcl/opengl/scale.cxx +++ b/vcl/opengl/scale.cxx @@ -349,7 +349,7 @@ void OpenGLSalBitmap::ImplScale( const double& rScaleX, const double& rScaleY, B { ImplScaleFilter( xContext, rScaleX, rScaleY, GL_NEAREST ); } - if( nScaleFlag == BmpScaleFlag::BiLinear ) + else if( nScaleFlag == BmpScaleFlag::BiLinear ) { ImplScaleFilter( xContext, rScaleX, rScaleY, GL_LINEAR ); } @@ -360,7 +360,7 @@ void OpenGLSalBitmap::ImplScale( const double& rScaleX, const double& rScaleY, B ImplScaleConvolution( xContext, rScaleX, rScaleY, aKernel ); } else if( nScaleFlag == BmpScaleFlag::BestQuality && rScaleX <= 1 && rScaleY <= 1 ) - { // Use are scaling for best quality, but only if downscaling. + { // Use area scaling for best quality, but only if downscaling. ImplScaleArea( xContext, rScaleX, rScaleY ); } else if( nScaleFlag == BmpScaleFlag::Lanczos || nScaleFlag == BmpScaleFlag::BestQuality ) |