main: Remove redundant if
parent
af59624f83
commit
3a3d129e8f
|
@ -530,8 +530,6 @@ void on_vnc_client_update_fb(struct vnc_client* client)
|
||||||
struct pixman_region16 frame_damage = { 0 };
|
struct pixman_region16 frame_damage = { 0 };
|
||||||
pixman_region_copy(&frame_damage, &client->damage);
|
pixman_region_copy(&frame_damage, &client->damage);
|
||||||
|
|
||||||
if (client->n_av_frames != 0) {
|
|
||||||
|
|
||||||
for (int i = 0; i < client->n_av_frames; ++i) {
|
for (int i = 0; i < client->n_av_frames; ++i) {
|
||||||
const struct vnc_av_frame* frame = client->av_frames[i];
|
const struct vnc_av_frame* frame = client->av_frames[i];
|
||||||
|
|
||||||
|
@ -539,7 +537,6 @@ void on_vnc_client_update_fb(struct vnc_client* client)
|
||||||
frame->x, frame->y, frame->width,
|
frame->x, frame->y, frame->width,
|
||||||
frame->height);
|
frame->height);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
struct pixman_region16 damage_scaled = { 0 }, damage = { 0 };
|
struct pixman_region16 damage_scaled = { 0 }, damage = { 0 };
|
||||||
region_scale(&damage_scaled, &frame_damage, scale);
|
region_scale(&damage_scaled, &frame_damage, scale);
|
||||||
|
|
Loading…
Reference in New Issue