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

Limit crosshair scaling to integer multiples to avoid distortion #14501

Merged
merged 1 commit into from Mar 30, 2024

Conversation

grorp
Copy link
Member

@grorp grorp commented Mar 28, 2024

For related discussion, see #13772, https://irc.minetest.net/minetest-dev/2023-09-11 (be warned) and https://forum.minetest.net/viewtopic.php?t=30025.

This obviously isn't optimal. It's definitely better than what we had in 5.7.0. For some users it'll be better than in 5.8.0, for some users it'll be worse than in 5.8.0.

For easier testing, this PR also allows changing HUD scaling via /set in singleplayer.

To do

This PR is a Ready for Review.

How to test

Get yourself an image crosshair, for example this one by Linuxdirk: https://forum.minetest.net/download/file.php?id=28632

Set different values for hud_scaling. See that the crosshair scales without being distorted.

Copy link
Member

@sfan5 sfan5 left a comment

Choose a reason for hiding this comment

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

I didn't read the whole discussion but this seems fine to me.

@sfan5 sfan5 merged commit 6e3246c into minetest:master Mar 30, 2024
13 checks passed
@grorp grorp deleted the integer-multiple-crosshair branch March 30, 2024 10:41
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

2 participants