Remove call to nvnc_set_dimensions()

pull/40/head
Andri Yngvason 2020-04-12 16:14:18 +00:00
parent a5082fac17
commit 1fc664a014
1 changed files with 0 additions and 8 deletions

View File

@ -432,15 +432,7 @@ int init_nvnc(struct wayvnc* self, const char* addr, uint16_t port)
nvnc_set_userdata(self->nvnc, self); nvnc_set_userdata(self->nvnc, self);
uint32_t format = fourcc_from_gl_format(self->renderer.read_format);
if (format == DRM_FORMAT_INVALID)
return -1;
nvnc_set_name(self->nvnc, "WayVNC"); nvnc_set_name(self->nvnc, "WayVNC");
nvnc_set_dimensions(self->nvnc,
output_get_transformed_width(self->selected_output),
output_get_transformed_height(self->selected_output),
format);
nvnc_set_render_fn(self->nvnc, on_render); nvnc_set_render_fn(self->nvnc, on_render);