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

Crosshair separation #209

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Crosshair separation #209

wants to merge 8 commits into from

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

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.

2 participants