Skip to content

Conversation

@robalni
Copy link
Contributor

@robalni robalni commented Sep 10, 2020

The mouse cursor and the crosshair are currently treated as the same thing. The same variables are used to store their state and the same functions are used to render them. This was unexpected to me when I found it while trying to make changes to the mouse cursor.

In this pull request they are two different things. This makes it possible to e.g. show the crosshair and cursor in different positions at the same time and therefore it's also possible to keep the crosshair in the background while showing menus.

: POINTER_NONE;
}

static void draw_pointer(int w, int h, int pointertype)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would be great if you could use ivec2 dims instead of int w, int h

Copy link
Contributor

@MoonPadUSer MoonPadUSer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks and works great

@TheAssassin TheAssassin added this to the 1.7.0 milestone Dec 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants