aboutsummaryrefslogtreecommitdiff
path: root/backend/drm
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-12-25 12:21:29 +0100
committerSimon Ser <contact@emersion.fr>2020-12-25 12:21:29 +0100
commitb9460ab724fb8df18d22cb0e10cf6e07646fc1cf (patch)
tree0ec73b0989d250debb08d6576c2477c104e28284 /backend/drm
parentae5275c09fbd2cce326dee2b6d13fd8b9cdc08aa (diff)
Stop using wlr_texture_get_size
Just use wlr_texture.{width,height} directly.
Diffstat (limited to 'backend/drm')
-rw-r--r--backend/drm/drm.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c
index 26cf99df..06a58d50 100644
--- a/backend/drm/drm.c
+++ b/backend/drm/drm.c
@@ -915,10 +915,8 @@ static bool drm_connector_set_cursor(struct wlr_output *output,
plane->cursor_enabled = false;
if (texture != NULL) {
- int width, height;
- wlr_texture_get_size(texture, &width, &height);
- width = width * output->scale / scale;
- height = height * output->scale / scale;
+ int width = texture->width * output->scale / scale;
+ int height = texture->height * output->scale / scale;
if (width > (int)plane->surf.width || height > (int)plane->surf.height) {
wlr_drm_conn_log(conn, WLR_ERROR, "Cursor too large (max %dx%d)",