summaryrefslogtreecommitdiff
path: root/vcl/source/window
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2018-04-03 01:05:33 +1000
committerTomaž Vajngerl <quikee@gmail.com>2018-04-03 04:46:19 +0200
commit8e0eb015e74775b9bf02326ffd7b67e83ad6c60d (patch)
tree3efb6da3014389a326bedd5c6504be05a077fc5f /vcl/source/window
parent55d5d9d365ea18e66cef045756f772e2fa9d0648 (diff)
vcl: use BitmapEx::Scale() where needed and SetSizePixel() elsewhere
Change-Id: If4b2f3c209d1aefbe5756645d448c992387bae16 Reviewed-on: https://gerrit.libreoffice.org/52268 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl/source/window')
-rw-r--r--vcl/source/window/menubarwindow.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/menubarwindow.cxx b/vcl/source/window/menubarwindow.cxx
index c25c29e49db0..c264e89fba0a 100644
--- a/vcl/source/window/menubarwindow.cxx
+++ b/vcl/source/window/menubarwindow.cxx
@@ -98,7 +98,7 @@ void DecoToolBox::SetImages( long nMaxHeight, bool bForce )
aEraseColor.SetTransparency( 255 );
aBmpExDst.Erase( aEraseColor );
- aBmpExDst.SetSizePixel( Size( lastSize, lastSize ) );
+ aBmpExDst.Scale( Size( lastSize, lastSize ) );
tools::Rectangle aSrcRect( Point(0,0), maImage.GetSizePixel() );
tools::Rectangle aDestRect( Point((lastSize - maImage.GetSizePixel().Width())/2,