mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-09 16:27:53 +00:00
dc: inline dpi computation
Actually not exactly the same as this fix a bug if base is not the first element (in this case if dpi_ring_item is NULL dpi is not) Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
parent
0c91530b07
commit
25d4a66519
@ -466,7 +466,6 @@ static int current_add_equal(DisplayChannel *display, DrawItem *item, TreeItem *
|
||||
if (is_same_drawable(drawable, other_drawable)) {
|
||||
|
||||
DisplayChannelClient *dcc;
|
||||
RedDrawablePipeItem *dpi;
|
||||
RingItem *dpi_ring_item;
|
||||
GList *link;
|
||||
|
||||
@ -480,8 +479,7 @@ static int current_add_equal(DisplayChannel *display, DrawItem *item, TreeItem *
|
||||
/* dpi contains a sublist of dcc's, ordered the same */
|
||||
while (link) {
|
||||
dcc = link->data;
|
||||
dpi = SPICE_UPCAST(RedDrawablePipeItem, dpi_ring_item);
|
||||
if (dpi && dcc == dpi->dcc) {
|
||||
if (dpi_ring_item && dcc == SPICE_UPCAST(RedDrawablePipeItem, dpi_ring_item)->dcc) {
|
||||
dpi_ring_item = ring_next(&other_drawable->pipes, dpi_ring_item);
|
||||
} else {
|
||||
dcc_prepend_drawable(dcc, drawable);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user