aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-05-25 15:55:41 +0200
committerSimon Ser <contact@emersion.fr>2022-05-25 15:55:41 +0200
commitf91f38b79af2bcd091da7347e83066dea679a1bd (patch)
tree7bda8fd144699a39af71317ab377c3c805aa7a26 /include
parente59f4d4ffa9ac2c7add84278b716b7e1c7ac74f3 (diff)
backend/drm: remove wlr_drm_surface.{width,height}
This information is stored in wlr_swapchain, no need to duplicate it.
Diffstat (limited to 'include')
-rw-r--r--include/backend/drm/renderer.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/include/backend/drm/renderer.h b/include/backend/drm/renderer.h
index 52a2a053..77ed4127 100644
--- a/include/backend/drm/renderer.h
+++ b/include/backend/drm/renderer.h
@@ -19,10 +19,6 @@ struct wlr_drm_renderer {
struct wlr_drm_surface {
struct wlr_drm_renderer *renderer;
-
- uint32_t width;
- uint32_t height;
-
struct wlr_swapchain *swapchain;
};
@@ -40,7 +36,7 @@ bool init_drm_renderer(struct wlr_drm_backend *drm,
void finish_drm_renderer(struct wlr_drm_renderer *renderer);
bool init_drm_surface(struct wlr_drm_surface *surf,
- struct wlr_drm_renderer *renderer, uint32_t width, uint32_t height,
+ struct wlr_drm_renderer *renderer, int width, int height,
const struct wlr_drm_format *drm_format);
bool drm_fb_import(struct wlr_drm_fb **fb, struct wlr_drm_backend *drm,