From 84c6dbd58d0dc862488c9c6364f9f78276a893f0 Mon Sep 17 00:00:00 2001 From: Tony Crisci Date: Mon, 14 Aug 2017 15:32:20 -0400 Subject: [PATCH] remove unused dimension from buffer calculations --- include/wlr/render.h | 1 - types/wlr_surface.c | 3 --- 2 files changed, 4 deletions(-) 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,