From ab56275f4622ade0286a580a5945600567c6b415 Mon Sep 17 00:00:00 2001 From: Keith Curtis Date: Thu, 2 Jan 2014 16:36:51 +0100 Subject: hidpi: Really use BMP_SCALE_FAST when scaling the images. It is not a problem of performance, but of the look - the images get too blurry in the case of icons; and the blurry look is worse than than the artifacts of the fast scaling. Revert "hidpi: Use the default scaling algorithm." This reverts commit e07097cce36f1220f5574a80dc22eeabb3005261. Change-Id: I8af2827758e02ec3c8b7dade1559c45bd9f0ef35 --- vcl/source/window/toolbox2.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vcl') diff --git a/vcl/source/window/toolbox2.cxx b/vcl/source/window/toolbox2.cxx index b11a918dcb4b..fca0ce8b5971 100644 --- a/vcl/source/window/toolbox2.cxx +++ b/vcl/source/window/toolbox2.cxx @@ -1359,7 +1359,7 @@ void ToolBox::SetItemImage( sal_uInt16 nItemId, const Image& rImage ) // FIXME find out what that code is & fix accordingly if (aBitmap.GetSizePixel().Width() < 32) { - aBitmap.Scale(GetDPIScaleFactor(), GetDPIScaleFactor()); + aBitmap.Scale(GetDPIScaleFactor(), GetDPIScaleFactor(), BMP_SCALE_FAST); aImage = Image(aBitmap); } } -- cgit