diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2016-10-27 18:04:46 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2016-10-29 18:14:23 +0000 |
commit | 484390a09624f68a8dec01eb5bf06e84cdcb80f6 (patch) | |
tree | 785861f4ea5748754832b7e513a9b24e9f3d88d7 /vcl/source/window/toolbox2.cxx | |
parent | 5bb5463efefc4d65e3434b37618cb74a1fe2a598 (diff) |
HiDPI: remove unneeded image scaling when HiDPI is enabled
We don't need to scale images for HiDPI mode anymore - this is now
done automatically when the image is loaded.
Change-Id: Ie285cf4d672f4c098a468d3f7560ee2700365b92
Reviewed-on: https://gerrit.libreoffice.org/30340
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl/source/window/toolbox2.cxx')
-rw-r--r-- | vcl/source/window/toolbox2.cxx | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/vcl/source/window/toolbox2.cxx b/vcl/source/window/toolbox2.cxx index 677f9c13c01c..5336f227703f 100644 --- a/vcl/source/window/toolbox2.cxx +++ b/vcl/source/window/toolbox2.cxx @@ -951,20 +951,6 @@ void ToolBox::SetItemImage( sal_uInt16 nItemId, const Image& rImage ) Size aOldSize = pItem->maImage.GetSizePixel(); pItem->maImageOriginal = aImage; - - if (GetDPIScaleFactor() > 1) - { - BitmapEx aBitmap(aImage.GetBitmapEx()); - - // Some code calls this twice, so add a sanity check - // FIXME find out what that code is & fix accordingly - if (aBitmap.GetSizePixel().Width() < 32) - { - aBitmap.Scale(GetDPIScaleFactor(), GetDPIScaleFactor(), BmpScaleFlag::Fast); - aImage = Image(aBitmap); - } - } - pItem->maImage = aImage; // only once all is calculated, do extra work |