aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--types/output/cursor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/types/output/cursor.c b/types/output/cursor.c
index d83e3244..980ac69c 100644
--- a/types/output/cursor.c
+++ b/types/output/cursor.c
@@ -303,8 +303,8 @@ static struct wlr_buffer *render_cursor_buffer(struct wlr_output_cursor *cursor)
struct wlr_renderer *renderer = output->renderer;
assert(allocator != NULL && renderer != NULL);
- int width = texture->width;
- int height = texture->height;
+ int width = texture->width * output->scale / scale;
+ int height = texture->height * output->scale / scale;
if (output->impl->get_cursor_size) {
// Apply hardware limitations on buffer size
output->impl->get_cursor_size(cursor->output, &width, &height);