summaryrefslogtreecommitdiff
path: root/vcl/qt5
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2021-12-30 00:14:26 +0900
committerTomaž Vajngerl <quikee@gmail.com>2022-01-05 04:36:06 +0100
commit581bed6233f31ec5eafb1231fcb93bc3f583f9cb (patch)
tree8a531ab1fea1b2aad4c0336bab68b537b3dee6f8 /vcl/qt5
parent86fdd581a832c7476d7556f3f4fb7d83f5de4d8b (diff)
vcl: move drawBitmap, drawMask functions to SvpGraphicsBackend
Also fix the QTSvpGraphics that uses a special drawBitmap (renamed to drawBitmapBuffer) call and moved in also to SvpGraphicsBackend. Change-Id: Ic50630ba23e35a62ea3d5aaa0955a7666f2bca68 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127980 Tested-by: Tomaž Vajngerl <quikee@gmail.com> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl/qt5')
-rw-r--r--vcl/qt5/QtSvpGraphics.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/qt5/QtSvpGraphics.cxx b/vcl/qt5/QtSvpGraphics.cxx
index 3632c8990706..8ae869a1c247 100644
--- a/vcl/qt5/QtSvpGraphics.cxx
+++ b/vcl/qt5/QtSvpGraphics.cxx
@@ -89,7 +89,8 @@ void QtSvpGraphics::handleDamage(const tools::Rectangle& rDamagedRegion)
QImage2BitmapBuffer(*pImage, aBuffer);
SalTwoRect aTR(0, 0, pImage->width(), pImage->height(), rDamagedRegion.Left(),
rDamagedRegion.Top(), rDamagedRegion.GetWidth(), rDamagedRegion.GetHeight());
- drawBitmap(aTR, &aBuffer, CAIRO_OPERATOR_OVER);
+
+ getSvpBackend()->drawBitmapBuffer(aTR, &aBuffer, CAIRO_OPERATOR_OVER);
}
void QtSvpGraphics::GetResolution(sal_Int32& rDPIX, sal_Int32& rDPIY)