summaryrefslogtreecommitdiff
path: root/vcl/headless
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-06-12 12:03:08 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-06-12 12:06:48 +0200
commite99b6a91d0800acee41ae3b5cbf81be545d93122 (patch)
tree03c8d0eee1e307cd80b8f16c0cd7c331aa9d1a68 /vcl/headless
parentd86549db56b25c2b201285cb67521cccc11b8bae (diff)
revert part of "loplugin:unusedmethods"
revert part of commit d4d037619638e1915d15dba81c38a1c9b3157972 loplugin:unusedmethods SvpSalGraphics::drawBitmap is used by KDE5 code Change-Id: I2a935aa88d7301c35f3fedec13a9785c497b8eb0 Reviewed-on: https://gerrit.libreoffice.org/55673 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/headless')
-rw-r--r--vcl/headless/svpgdi.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/headless/svpgdi.cxx b/vcl/headless/svpgdi.cxx
index 649d5850350f..4b5050420e7a 100644
--- a/vcl/headless/svpgdi.cxx
+++ b/vcl/headless/svpgdi.cxx
@@ -1224,6 +1224,12 @@ void SvpSalGraphics::drawBitmap(const SalTwoRect& rTR, const SalBitmap& rSourceB
copySource(rTR, source);
}
+void SvpSalGraphics::drawBitmap(const SalTwoRect& rTR, BitmapBuffer* pBuffer)
+{
+ cairo_surface_t* source = createCairoSurface( pBuffer );
+ copySource(rTR, source);
+}
+
void SvpSalGraphics::drawBitmap( const SalTwoRect& rTR,
const SalBitmap& rSourceBitmap,
const SalBitmap& rTransparentBitmap )