Pass frame damage to renderer via image struct

pull/6/head
Andri Yngvason 2022-04-09 16:19:57 +00:00
parent 040a87836d
commit 698ac6947b
2 changed files with 2 additions and 0 deletions

View File

@ -24,6 +24,7 @@ struct image {
int width, height, stride;
uint32_t format;
void* pixels;
struct pixman_region16* damage;
};
void render_image(struct buffer* dst, const struct image* src, double scale,

View File

@ -288,6 +288,7 @@ static void window_transfer_pixels(struct window* w)
.stride = vnc_client_get_stride(w->vnc),
// TODO: Get the format from the vnc module
.format = w->back_buffer->format,
.damage = &w->vnc->damage,
};
if (have_egl)