Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache the Gdk.Cursor for tools which change cursors on mouse events #918

Open
cameronwhite opened this issue Jul 7, 2024 · 0 comments · May be fixed by #919
Open

Cache the Gdk.Cursor for tools which change cursors on mouse events #918

cameronwhite opened this issue Jul 7, 2024 · 0 comments · May be fixed by #919

Comments

@cameronwhite
Copy link
Member

Tools such as the shape tool and text tool can change the cursor based on the mouse position. This results in a lot of calls to properties such as RectangleTool.DefaultCursor which re-allocates the texture and cursor every time the mouse moves. This should be created once and reused for tools which have this type of behaviour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant