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

Make the crosshair DPI-aware #13772

Merged
merged 2 commits into from Sep 11, 2023
Merged

Make the crosshair DPI-aware #13772

merged 2 commits into from Sep 11, 2023

Conversation

grorp
Copy link
Member

@grorp grorp commented Aug 31, 2023

This PR makes the crosshair respect DPI and hud_scaling. This doesn't make any difference on my desktop computer, but on my Android phone, it results in a noticeably less tiny crosshair.

desktop, master branch
screenshot

desktop, this PR (identical)
screenshot

Android, master branch
screenshot

Android, this PR (noticeably less tiny crosshair)
screenshot

To do

This PR is a Ready for Review.

How to test

Verify that both the object crosshair and the normal crosshair still work, verify that crosshair images still work, verify that crosshair_color still affects crosshair images.

Verify that the crosshair is affected by hud_scaling.

@grorp grorp merged commit 833c324 into minetest:master Sep 11, 2023
13 checks passed
@erlehmann
Copy link
Contributor

For future reference: As I understand it, this PR may make the provided PNG crosshair blurry, depending on your. DPI.

(Or maybe it is already blurry, who knows? Testing things is hard, let's go shopping instead!)

@grorp
Copy link
Member Author

grorp commented Sep 11, 2023

Yes, it may. To avoid that, we could do something like this: 1a81267. There were also arguments against that on IRC, though. Here are the logs: https://irc.minetest.net/minetest-dev/2023-09-11.

@grorp grorp deleted the dpi-crosshair branch December 18, 2023 16:38
kawogi pushed a commit to kawogi/minetest that referenced this pull request Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants