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 --- cui/source/tabpages/align.cxx | 2 +- cui/source/tabpages/border.cxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'cui') diff --git a/cui/source/tabpages/align.cxx b/cui/source/tabpages/align.cxx index 2418ff5a0c0d..5ba830af9521 100644 --- a/cui/source/tabpages/align.cxx +++ b/cui/source/tabpages/align.cxx @@ -329,7 +329,7 @@ void AlignmentTabPage::InitVsRefEgde() { OUString rImageName = aImageList.GetImageName(i); BitmapEx b = aImageList.GetImage(rImageName).GetBitmapEx(); - b.Scale(GetDPIScaleFactor(), GetDPIScaleFactor()); + b.Scale(GetDPIScaleFactor(), GetDPIScaleFactor(), BMP_SCALE_FAST); aImageList.ReplaceImage(rImageName, Image(b)); } } diff --git a/cui/source/tabpages/border.cxx b/cui/source/tabpages/border.cxx index 31bb80260c4b..0073a9ea59cd 100644 --- a/cui/source/tabpages/border.cxx +++ b/cui/source/tabpages/border.cxx @@ -134,7 +134,7 @@ SvxBorderTabPage::SvxBorderTabPage(Window* pParent, const SfxItemSet& rCoreAttrs { OUString rImageName = aBorderImgLst.GetImageName(i); BitmapEx b = aBorderImgLst.GetImage(rImageName).GetBitmapEx(); - b.Scale(GetDPIScaleFactor(), GetDPIScaleFactor()); + b.Scale(GetDPIScaleFactor(), GetDPIScaleFactor(), BMP_SCALE_FAST); aBorderImgLst.ReplaceImage(rImageName, Image(b)); } @@ -142,7 +142,7 @@ SvxBorderTabPage::SvxBorderTabPage(Window* pParent, const SfxItemSet& rCoreAttrs { OUString rImageName = aShadowImgLst.GetImageName(i); BitmapEx b = aShadowImgLst.GetImage(rImageName).GetBitmapEx(); - b.Scale(GetDPIScaleFactor(), GetDPIScaleFactor()); + b.Scale(GetDPIScaleFactor(), GetDPIScaleFactor(), BMP_SCALE_FAST); aShadowImgLst.ReplaceImage(rImageName, Image(b)); } } -- cgit