diff --git a/include/wlr/render.h b/include/wlr/render.h index 90081b7a..96b61ddf 100644 --- a/include/wlr/render.h +++ b/include/wlr/render.h @@ -61,7 +61,6 @@ struct wlr_texture { bool valid; uint32_t format; int width, height; - int height_from_buffer, width_from_buffer; struct wl_signal destroy_signal; struct wl_resource *resource; }; diff --git a/types/wlr_surface.c b/types/wlr_surface.c index 12220807..2345bfd1 100644 --- a/types/wlr_surface.c +++ b/types/wlr_surface.c @@ -15,11 +15,8 @@ static void surface_attach(struct wl_client *client, struct wl_resource *resource, struct wl_resource *buffer, int32_t sx, int32_t sy) { struct wlr_surface *surface = wl_resource_get_user_data(resource); - int scale = surface->current.scale; surface->pending.invalid |= WLR_SURFACE_INVALID_BUFFER; surface->pending.buffer = buffer; - surface->texture->height_from_buffer = surface->texture->height / scale; - surface->texture->width_from_buffer = surface->texture->width / scale; } static void surface_damage(struct wl_client *client,