Lines Matching refs:rect
100 entry->rect.x = x; in vnc_job_add_rect()
101 entry->rect.y = y; in vnc_job_add_rect()
102 entry->rect.w = w; in vnc_job_add_rect()
103 entry->rect.h = h; in vnc_job_add_rect()
210 static bool vnc_worker_clamp_rect(VncState *vs, VncJob *job, VncRect *rect) in vnc_worker_clamp_rect() argument
212 trace_vnc_job_clamp_rect(vs, job, rect->x, rect->y, rect->w, rect->h); in vnc_worker_clamp_rect()
214 if (rect->x >= vs->client_width) { in vnc_worker_clamp_rect()
217 rect->w = MIN(vs->client_width - rect->x, rect->w); in vnc_worker_clamp_rect()
218 if (rect->w == 0) { in vnc_worker_clamp_rect()
222 if (rect->y >= vs->client_height) { in vnc_worker_clamp_rect()
225 rect->h = MIN(vs->client_height - rect->y, rect->h); in vnc_worker_clamp_rect()
226 if (rect->h == 0) { in vnc_worker_clamp_rect()
230 trace_vnc_job_clamped_rect(vs, job, rect->x, rect->y, rect->w, rect->h); in vnc_worker_clamp_rect()
234 trace_vnc_job_discard_rect(vs, job, rect->x, rect->y, rect->w, rect->h); in vnc_worker_clamp_rect()
297 if (vnc_worker_clamp_rect(&vs, job, &entry->rect)) { in vnc_worker_thread_loop()
298 n = vnc_send_framebuffer_update(&vs, entry->rect.x, entry->rect.y, in vnc_worker_thread_loop()
299 entry->rect.w, entry->rect.h); in vnc_worker_thread_loop()