mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-21 04:25:11 +00:00
dcc: Reuse display variable
display variable already contains the DCC_TO_DC(dcc) value so reuse it. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Christophe Fergeau <cfergeau@redhat.com>
This commit is contained in:
parent
9a54ddf459
commit
d27c18e981
@ -297,7 +297,7 @@ void dcc_create_surface(DisplayChannelClient *dcc, int surface_id)
|
||||
}
|
||||
|
||||
display = DCC_TO_DC(dcc);
|
||||
flags = is_primary_surface(DCC_TO_DC(dcc), surface_id) ? SPICE_SURFACE_FLAGS_PRIMARY : 0;
|
||||
flags = is_primary_surface(display, surface_id) ? SPICE_SURFACE_FLAGS_PRIMARY : 0;
|
||||
|
||||
/* don't send redundant create surface commands to client */
|
||||
if (!dcc ||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user