diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-08-14 11:49:51 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-08-14 17:29:30 +0200 |
commit | 0fd54995ef6a7c7914b6a133aef0c81de5fb20de (patch) | |
tree | a017e72681bf366fd48cdb5468514edd936f4aae /vcl/workben | |
parent | b4a718583a3311dda7abd3010938c847b16e5f30 (diff) |
vcldemo: make --widgets handle rendercontext
Change-Id: I90f784859e9d4f246f570e033b7e18c335588fd0
Diffstat (limited to 'vcl/workben')
-rw-r--r-- | vcl/workben/vcldemo.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/vcl/workben/vcldemo.cxx b/vcl/workben/vcldemo.cxx index 4ddeff4a8e34..a785ab90fbbe 100644 --- a/vcl/workben/vcldemo.cxx +++ b/vcl/workben/vcldemo.cxx @@ -1494,7 +1494,7 @@ public: mpButton.disposeAndClear(); WorkWindow::dispose(); } - virtual void Paint(vcl::RenderContext& /*rRenderContext*/, const Rectangle&) SAL_OVERRIDE + virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle&) SAL_OVERRIDE { Rectangle aWholeSize(Point(0, 0),GetOutputSizePixel()); vcl::Region aClip(aWholeSize); @@ -1503,10 +1503,10 @@ public: Wallpaper aWallpaper(COL_GREEN); - Push(PushFlags::CLIPREGION); - IntersectClipRegion(aClip); - DrawWallpaper(aWholeSize, aWallpaper); - Pop(); + rRenderContext.Push(PushFlags::CLIPREGION); + rRenderContext.IntersectClipRegion(aClip); + rRenderContext.DrawWallpaper(aWholeSize, aWallpaper); + rRenderContext.Pop(); ScopedVclPtrInstance< VirtualDevice > pDev(*this); pDev->EnableRTL(IsRTLEnabled()); @@ -1516,7 +1516,7 @@ public: aSubRect.Move(-aExclude.Left(), -aExclude.Top()); pDev->DrawWallpaper(aSubRect, aWallpaper ); - DrawOutDev(aExclude.TopLeft(), aExclude.GetSize(), + rRenderContext.DrawOutDev(aExclude.TopLeft(), aExclude.GetSize(), Point( 0, 0 ), aExclude.GetSize(), *pDev.get() ); } }; |