summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.com>2015-12-12 15:00:35 +0100
committerTomaž Vajngerl <quikee@gmail.com>2015-12-12 16:09:26 +0000
commit8227e8bef1c8c6c95627daf5023fe927605d50d2 (patch)
treed19c2e72d36a573ea5473be339617f07c74d6ada
parent115a6d2587a03218d41c173beb437a6bf59def10 (diff)
tdf#94851 quick fix for drawBitmap
Change-Id: Iffc0c9b2215c85760856ab876fa6e04613cb4200 Reviewed-on: https://gerrit.libreoffice.org/20662 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
-rw-r--r--vcl/win/gdi/salgdi2.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/win/gdi/salgdi2.cxx b/vcl/win/gdi/salgdi2.cxx
index 91b97db8b05f..6f0e5d4a1eb9 100644
--- a/vcl/win/gdi/salgdi2.cxx
+++ b/vcl/win/gdi/salgdi2.cxx
@@ -104,7 +104,7 @@ void WinSalGraphics::drawBitmap(const SalTwoRect& rPosAry, const SalBitmap& rSal
{
std::unique_ptr<WinSalBitmap> pWinSalBitmap(new WinSalBitmap());
SalBitmap& rConstBitmap = const_cast<SalBitmap&>(rSalBitmap);
- convertToWinSalBitmap(rConstBitmap, *pWinSalBitmap);
+ convertToWinSalBitmap(rConstBitmap, *pWinSalBitmap.get());
mpImpl->drawBitmap(rPosAry, *pWinSalBitmap.get());
}
else
@@ -122,14 +122,14 @@ void WinSalGraphics::drawBitmap( const SalTwoRect& rPosAry,
{
std::unique_ptr<WinSalBitmap> pWinSalBitmap(new WinSalBitmap());
SalBitmap& rConstBitmap = const_cast<SalBitmap&>(rSSalBitmap);
- convertToWinSalBitmap(rConstBitmap, *pWinSalBitmap);
+ convertToWinSalBitmap(rConstBitmap, *pWinSalBitmap.get());
std::unique_ptr<WinSalBitmap> pWinTransparentSalBitmap(new WinSalBitmap());
SalBitmap& rConstTransparentBitmap = const_cast<SalBitmap&>(rSTransparentBitmap);
- convertToWinSalBitmap(rConstTransparentBitmap, *pWinTransparentSalBitmap);
+ convertToWinSalBitmap(rConstTransparentBitmap, *pWinTransparentSalBitmap.get());
- mpImpl->drawBitmap(rPosAry, *pWinSalBitmap, *pWinTransparentSalBitmap);
+ mpImpl->drawBitmap(rPosAry, *pWinSalBitmap.get(), *pWinTransparentSalBitmap.get());
}
else
{