You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-30 16:26:50 +00:00
Fix clearing custom cursor
This commit is contained in:
@@ -2714,11 +2714,11 @@ void DisplayServerX11::cursor_set_custom_image(const Ref<Resource> &p_cursor, Cu
|
||||
cursors[p_shape] = XcursorImageLoadCursor(x11_display, img[p_shape]);
|
||||
}
|
||||
|
||||
cursors_cache.erase(p_shape);
|
||||
|
||||
CursorShape c = current_cursor;
|
||||
current_cursor = CURSOR_MAX;
|
||||
cursor_set_shape(c);
|
||||
|
||||
cursors_cache.erase(p_shape);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3389,9 +3389,9 @@ void DisplayServerMacOS::cursor_set_custom_image(const Ref<Resource> &p_cursor,
|
||||
cursors[p_shape] = nullptr;
|
||||
}
|
||||
|
||||
cursor_update_shape();
|
||||
|
||||
cursors_cache.erase(p_shape);
|
||||
|
||||
cursor_update_shape();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1842,11 +1842,11 @@ void DisplayServerWindows::cursor_set_custom_image(const Ref<Resource> &p_cursor
|
||||
}
|
||||
cursors[p_shape] = nullptr;
|
||||
|
||||
cursors_cache.erase(p_shape);
|
||||
|
||||
CursorShape c = cursor_shape;
|
||||
cursor_shape = CURSOR_MAX;
|
||||
cursor_set_shape(c);
|
||||
|
||||
cursors_cache.erase(p_shape);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user