From 19274cdb71983daf684abe623dbad61d3ca3cb6a Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Thu, 13 Nov 2014 06:16:03 +0100 Subject: Revert "loplugin:unreffun" This reverts commit 3e90cc12731eaf149dce83237bfccb88ffbd26a9. --- vcl/workben/vcldemo.cxx | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'vcl/workben') diff --git a/vcl/workben/vcldemo.cxx b/vcl/workben/vcldemo.cxx index 79e2fbca3bba..177cd51457ef 100644 --- a/vcl/workben/vcldemo.cxx +++ b/vcl/workben/vcldemo.cxx @@ -552,6 +552,17 @@ public: } }; + struct FetchDrawBitmap : public RegionRenderer + { + virtual void RenderRegion(OutputDevice &rDev, Rectangle r, + const RenderContext &) SAL_OVERRIDE + { + Bitmap aBitmap(rDev.GetBitmap(Point(0,0),rDev.GetOutputSizePixel())); + aBitmap.Scale(r.GetSize(), BMP_SCALE_BESTQUALITY); + rDev.DrawBitmap(r.TopLeft(), aBitmap); + } + }; + void drawToDevice(OutputDevice &rDev, bool bVdev) { RenderContext aCtx; -- cgit