diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-11-13 06:16:03 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-11-13 07:54:23 +0100 |
commit | 19274cdb71983daf684abe623dbad61d3ca3cb6a (patch) | |
tree | 1a1df9994acef515462e0017a23701aaee38e51b /vcl/workben | |
parent | 17bc7a4cb9eb22d59aae7d7646bf436df9e3fd8b (diff) |
Revert "loplugin:unreffun"
This reverts commit 3e90cc12731eaf149dce83237bfccb88ffbd26a9.
Diffstat (limited to 'vcl/workben')
-rw-r--r-- | vcl/workben/vcldemo.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
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; |