mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-18 00:17:03 +00:00
Reduce indentation inverting condition
Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Christophe Fergeau <cfergeau@redhat.com>
This commit is contained in:
parent
777a4c4987
commit
f27ee4c0db
@ -250,20 +250,19 @@ static bool is_next_stream_frame(DisplayChannel *display,
|
||||
return FALSE;
|
||||
}
|
||||
} else {
|
||||
if (rect_contains(&red_drawable->bbox, other_dest)) {
|
||||
int candidate_area = rect_get_area(&red_drawable->bbox);
|
||||
int other_area = rect_get_area(other_dest);
|
||||
/* do not stream drawables that are significantly
|
||||
* bigger than the original frame */
|
||||
if (candidate_area > 2 * other_area) {
|
||||
spice_debug("too big candidate:");
|
||||
spice_debug("prev box ==>");
|
||||
rect_debug(other_dest);
|
||||
spice_debug("new box ==>");
|
||||
rect_debug(&red_drawable->bbox);
|
||||
return FALSE;
|
||||
}
|
||||
} else {
|
||||
if (!rect_contains(&red_drawable->bbox, other_dest)) {
|
||||
return FALSE;
|
||||
}
|
||||
int candidate_area = rect_get_area(&red_drawable->bbox);
|
||||
int other_area = rect_get_area(other_dest);
|
||||
/* do not stream drawables that are significantly
|
||||
* bigger than the original frame */
|
||||
if (candidate_area > 2 * other_area) {
|
||||
spice_debug("too big candidate:");
|
||||
spice_debug("prev box ==>");
|
||||
rect_debug(other_dest);
|
||||
spice_debug("new box ==>");
|
||||
rect_debug(&red_drawable->bbox);
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user