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

Remove state dependance from stanncam_ratio_compensate_* functions #58

Open
bfrymire opened this issue Feb 2, 2024 · 1 comment
Open

Comments

@bfrymire
Copy link
Collaborator

bfrymire commented Feb 2, 2024

The stanncam_ratio_compensate_* functions have the chance to return different values depending on the state of keeping the aspect ratio for STANNcam (stanncam_get_keep_aspect_ratio()).

The state dependence can be extracted from the function. and always return the correct ratio compensate value.

@jack27121
Copy link
Owner

.draw uses ratio compensate by default to ensure the game is drawn in the middle of the screen, if the aspect ratio doesn't match. And ratio_compensate changes depending on the actual ratio.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants