diff options
author | kleonc <9283098+kleonc@users.noreply.github.com> | 2024-06-02 22:05:21 +0200 |
---|---|---|
committer | kleonc <9283098+kleonc@users.noreply.github.com> | 2024-06-05 01:44:05 +0200 |
commit | 91e995e704a6b43ecea37ab0fafebe4165e51ed6 (patch) | |
tree | a38097946d9e159ea843223cebbb1369a6a8c1c9 /platform/linuxbsd/wayland | |
parent | 705b7a0b0bd535c95e4e8fb439f3d84b3fb4f427 (diff) | |
download | redot-engine-91e995e704a6b43ecea37ab0fafebe4165e51ed6.tar.gz |
Fix creating cursor image from AtlasTexture
Diffstat (limited to 'platform/linuxbsd/wayland')
-rw-r--r-- | platform/linuxbsd/wayland/display_server_wayland.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/platform/linuxbsd/wayland/display_server_wayland.cpp b/platform/linuxbsd/wayland/display_server_wayland.cpp index 12d3a6fd2f..aff83ddeee 100644 --- a/platform/linuxbsd/wayland/display_server_wayland.cpp +++ b/platform/linuxbsd/wayland/display_server_wayland.cpp @@ -1018,8 +1018,7 @@ void DisplayServerWayland::cursor_set_custom_image(const Ref<Resource> &p_cursor wayland_thread.cursor_shape_clear_custom_image(p_shape); } - Rect2 atlas_rect; - Ref<Image> image = _get_cursor_image_from_resource(p_cursor, p_hotspot, atlas_rect); + Ref<Image> image = _get_cursor_image_from_resource(p_cursor, p_hotspot); ERR_FAIL_COND(image.is_null()); CustomCursor &cursor = custom_cursors[p_shape]; |