aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-06-02 20:53:28 +0200
committerAlexander Orzechowski <alex@ozal.ski>2023-06-02 22:33:40 +0000
commit52b93f7eb41bd96870c935013fe6d1e36facba5c (patch)
tree3da16279f4627b966abef832b8d3cefb5f923645 /include/wlr
parent09c87cec3f0ea779717e38b3b886ef9a93840339 (diff)
output/cursor: fix scale and transform
Many issues here: - wlr_output_cursor_set_buffer() takes a buffer already scaled for the output, not a buffer with scale=1. - wlr_output_cursor.{width,height,hotspot_x,hotspot_y} are in output buffer coordinates. - render_cursor_buffer() had hardcoded no-ops for scale and transform, instead of using the cursor surface's. Fixes: b64e7e88bfb8 ("output: add output_cursor_set_texture()")
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_output.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h
index 267e51ef..be8253af 100644
--- a/include/wlr/types/wlr_output.h
+++ b/include/wlr/types/wlr_output.h
@@ -39,6 +39,8 @@ struct wlr_output_cursor {
bool enabled;
bool visible;
uint32_t width, height;
+ float scale;
+ enum wl_output_transform transform;
int32_t hotspot_x, hotspot_y;
struct wlr_texture *texture;
bool own_texture;