diff options
author | Jan Holesovsky <kendy@collabora.com> | 2013-10-23 14:34:25 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2013-11-15 16:51:50 +0100 |
commit | de13fe7249e086474fce756852de406f2795af51 (patch) | |
tree | f0e807e1af36c7b22490257b7332727e4434d20a /sw/qa/tiledrendering | |
parent | 1776ddf591fd24cc377e778dc31694cdab6e5f97 (diff) |
Tiled rendering: Show the device's content.
Change-Id: I6f9a4e2942e0d0b69fae262cc700266f578af899
Diffstat (limited to 'sw/qa/tiledrendering')
-rw-r--r-- | sw/qa/tiledrendering/tiledrendering.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sw/qa/tiledrendering/tiledrendering.cxx b/sw/qa/tiledrendering/tiledrendering.cxx index 148a720850c1..cb9f46f3dc6b 100644 --- a/sw/qa/tiledrendering/tiledrendering.cxx +++ b/sw/qa/tiledrendering/tiledrendering.cxx @@ -129,7 +129,10 @@ IMPL_LINK ( TiledRenderingDialog, RenderHdl, Button *, EMPTYARG ) aDevice.SetOutputSizePixel(Size(contextWidth, contextHeight)); pViewShell->PaintTile(&aDevice, Rectangle(tilePosX, tilePosY, tileWidth, tileHeight)); - //TODO now get it to the 'context' + + // copy the aDevice content to mpImage + BitmapEx aBitmap(aDevice.GetBitmapEx(Point(0,0), aDevice.GetOutputSizePixel())); + mpImage->SetImage(Image(aBitmap)); } return 1; |