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

Fix Windows issue #21

Merged
merged 1 commit into from
Sep 4, 2023
Merged

Fix Windows issue #21

merged 1 commit into from
Sep 4, 2023

Conversation

toxybenzoic
Copy link
Contributor

@toxybenzoic toxybenzoic commented Sep 3, 2023

Fixes #17.

The problem was caused by windows only accepting integer screen point values. Since multiplying the scaleFactor with the x, y, width, and height could produce decimal numbers, I floored them.

I also multiplied the mouse position by the scaleFactor.

@manhtai
Copy link
Member

manhtai commented Sep 4, 2023

Thanks, merge now and will release later.

@manhtai manhtai merged commit 9ad0c6f into plainlab:develop Sep 4, 2023
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.

Error processing argument at Index 0...
2 participants