vcl: only smooth bitmap transform when needed

Desktop / LibreOffice - Miklos Vajna [collabora.com] - 10 October 2019 11:35 EDT

If you have a very small bitmap and you rotate it by 90 degrees, then smoothing is not needed, but the result will be blurry. So in case scaling / shear doesn't need it and we do 90/180/270 rotation, avoid smoothing.

Change-Id: I4b8fad4b0b70516d35eaecfa70a707e6e8362d18 Reviewed-on: https://gerrit.libreoffice.org/80589

55b4d5ea9e1a vcl: only smooth bitmap transform when needed
vcl/CppunitTest_vcl_bitmap_test.mk | 1 +
vcl/qa/cppunit/BitmapExTest.cxx | 40 ++++++++++++++++++++++++++++++++++++++
vcl/source/gdi/bitmapex.cxx | 37 +++++++++++++++++++++++++++++++++--
3 files changed, 76 insertions(+), 2 deletions(-)

Upstream: cgit.freedesktop.org


  • Share