mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-27 23:49:04 +00:00
Update client and protocol to support the new SpiceClipRects
This commit is contained in:
parent
bb85131765
commit
5cd86fc45d
@ -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:
|
||||
|
||||
@ -412,7 +412,7 @@ struct Clip {
|
||||
clip_type type;
|
||||
switch (type) {
|
||||
case RECTS:
|
||||
ClipRects *data @outvar(cliprects);
|
||||
ClipRects *rects @outvar(cliprects) @c_ptr;
|
||||
} u @anon;
|
||||
};
|
||||
|
||||
|
||||
@ -382,7 +382,7 @@ struct Clip {
|
||||
clip_type type;
|
||||
switch (type) {
|
||||
case RECTS:
|
||||
ClipRects *data @outvar(cliprects);
|
||||
ClipRects *rects @outvar(cliprects) @c_ptr;
|
||||
default:
|
||||
uint64 data @zero;
|
||||
} u @anon;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user