From 8e0eb015e74775b9bf02326ffd7b67e83ad6c60d Mon Sep 17 00:00:00 2001 From: Chris Sherlock Date: Tue, 3 Apr 2018 01:05:33 +1000 Subject: vcl: use BitmapEx::Scale() where needed and SetSizePixel() elsewhere MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: If4b2f3c209d1aefbe5756645d448c992387bae16 Reviewed-on: https://gerrit.libreoffice.org/52268 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl --- vcl/source/window/menubarwindow.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vcl/source/window') 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, -- cgit