summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2016-10-27 18:04:46 +0200
committerTomaž Vajngerl <quikee@gmail.com>2016-10-29 18:14:23 +0000
commit484390a09624f68a8dec01eb5bf06e84cdcb80f6 (patch)
tree785861f4ea5748754832b7e513a9b24e9f3d88d7 /sfx2
parent5bb5463efefc4d65e3434b37618cb74a1fe2a598 (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 'sfx2')
-rw-r--r--sfx2/source/sidebar/TabBar.cxx13
1 files changed, 0 insertions, 13 deletions
diff --git a/sfx2/source/sidebar/TabBar.cxx b/sfx2/source/sidebar/TabBar.cxx
index 87777de05eb5..62826f72cbc7 100644
--- a/sfx2/source/sidebar/TabBar.cxx
+++ b/sfx2/source/sidebar/TabBar.cxx
@@ -145,12 +145,6 @@ void TabBar::SetDecks(const ResourceManager::DeckContextDescriptorContainer& rDe
void TabBar::UpdateButtonIcons()
{
Image aImage = Theme::GetImage(Theme::Image_TabBarMenu);
- if ( mpMenuButton->GetDPIScaleFactor() > 1 )
- {
- BitmapEx b = aImage.GetBitmapEx();
- b.Scale(mpMenuButton->GetDPIScaleFactor(), mpMenuButton->GetDPIScaleFactor(), BmpScaleFlag::Fast);
- aImage = Image(b);
- }
mpMenuButton->SetModeImage(aImage);
for(ItemContainer::const_iterator
@@ -163,13 +157,6 @@ void TabBar::UpdateButtonIcons()
if (xDeckDescriptor)
{
aImage = GetItemImage(*xDeckDescriptor);
- if ( mpMenuButton->GetDPIScaleFactor() > 1 )
- {
- BitmapEx b = aImage.GetBitmapEx();
- b.Scale(mpMenuButton->GetDPIScaleFactor(), mpMenuButton->GetDPIScaleFactor(), BmpScaleFlag::Fast);
- aImage = Image(b);
- }
-
iItem->mpButton->SetModeImage(aImage);
}
}