diff options
author | Alexander Larsson <alexl@redhat.com> | 2010-06-29 18:17:35 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2010-06-30 22:35:16 +0200 |
commit | 5cd86fc45dfa94cb08c3316c614923ff50b94b0f (patch) | |
tree | eb3399de26dcb6c4c3ad52a04ff0088704eef845 /client | |
parent | bb851317657e68239bedf2d3d4c23bea26156278 (diff) | |
download | spice-5cd86fc45dfa94cb08c3316c614923ff50b94b0f.tar.gz spice-5cd86fc45dfa94cb08c3316c614923ff50b94b0f.tar.xz spice-5cd86fc45dfa94cb08c3316c614923ff50b94b0f.zip |
Update client and protocol to support the new SpiceClipRects
Diffstat (limited to 'client')
-rw-r--r-- | client/display_channel.cpp | 5 |
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: |