summaryrefslogtreecommitdiff
path: root/sw/qa/tiledrendering
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2013-10-23 14:34:25 +0200
committerJan Holesovsky <kendy@collabora.com>2013-11-15 16:51:50 +0100
commitde13fe7249e086474fce756852de406f2795af51 (patch)
treef0e807e1af36c7b22490257b7332727e4434d20a /sw/qa/tiledrendering
parent1776ddf591fd24cc377e778dc31694cdab6e5f97 (diff)
Tiled rendering: Show the device's content.
Change-Id: I6f9a4e2942e0d0b69fae262cc700266f578af899
Diffstat (limited to 'sw/qa/tiledrendering')
-rw-r--r--sw/qa/tiledrendering/tiledrendering.cxx5
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;