summaryrefslogtreecommitdiffstats
path: root/client/display_channel.cpp
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-06-29 18:17:35 +0200
committerGerd Hoffmann <kraxel@redhat.com>2010-06-30 22:35:16 +0200
commit5cd86fc45dfa94cb08c3316c614923ff50b94b0f (patch)
treeeb3399de26dcb6c4c3ad52a04ff0088704eef845 /client/display_channel.cpp
parentbb851317657e68239bedf2d3d4c23bea26156278 (diff)
downloadspice-5cd86fc45dfa94cb08c3316c614923ff50b94b0f.tar.gz
spice-5cd86fc45dfa94cb08c3316c614923ff50b94b0f.tar.xz
spice-5cd86fc45dfa94cb08c3316c614923ff50b94b0f.zip
Update client and protocol to support the new SpiceClipRects
Diffstat (limited to 'client/display_channel.cpp')
-rw-r--r--client/display_channel.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/client/display_channel.cpp b/client/display_channel.cpp
index 1bf0744b..e66f845e 100644
--- a/client/display_channel.cpp
+++ b/client/display_channel.cpp
@@ -1291,9 +1291,8 @@ void DisplayChannel::set_clip_rects(const SpiceClip& clip, uint32_t& num_clip_re
{
switch (clip.type) {
case SPICE_CLIP_TYPE_RECTS: {
- uint32_t* n = (uint32_t*)SPICE_GET_ADDRESS(clip.data);
- num_clip_rects = *n;
- clip_rects = (SpiceRect *)(n + 1);
+ num_clip_rects = clip.rects->num_rects;
+ clip_rects = clip.rects->rects;
break;
}
case SPICE_CLIP_TYPE_NONE: