From 37be9e0c2efd21e088e8106b4356de7fcbe5a95b Mon Sep 17 00:00:00 2001 From: Søren Sandmann Pedersen Date: Fri, 10 Aug 2012 18:44:57 -0400 Subject: Add support for Composite command to the client All the real work is being done in spice-common, so this patch is just hooking up the virtual calls and adding the SPICE_DISPLAY_CAP_COMPOSITE capability. --- client/canvas.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'client/canvas.cpp') diff --git a/client/canvas.cpp b/client/canvas.cpp index 7d1561a3..f132186a 100644 --- a/client/canvas.cpp +++ b/client/canvas.cpp @@ -114,6 +114,13 @@ void Canvas::draw_alpha_blend(SpiceMsgDisplayDrawAlphaBlend& alpha_blend, int si touched_bbox(&alpha_blend.base.box); } +void Canvas::draw_composite(SpiceMsgDisplayDrawComposite& composite, int size) +{ + begin_draw(composite.base, size, sizeof(SpiceMsgDisplayDrawComposite)); + _canvas->ops->draw_composite(_canvas, &composite.base.box, &composite.base.clip, &composite.data); + touched_bbox(&composite.base.box); +} + void Canvas::copy_bits(SpiceMsgDisplayCopyBits& copy, int size) { begin_draw(copy.base, size, sizeof(SpiceMsgDisplayCopyBits)); -- cgit