mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 14:11:15 +00:00
Fix creating cursor image from AtlasTexture
This commit is contained in:
parent
705b7a0b0b
commit
91e995e704
7 changed files with 29 additions and 70 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue