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 automap aspect ratio #17

Merged
merged 1 commit into from
Jun 8, 2024
Merged

Conversation

jstanley0
Copy link
Contributor

g3_start_frame (used by automap among others) expects grd_curscreen->sc_aspect to be the pixel aspect ratio (i.e., 1_0f in a mode with square pixels) and not the screen aspect ratio

otherwise on a 16:9 screen automap shapes end up squished horizontally by a factor of 9/16

this change makes the sc_aspect setup code match what is done in other source ports (and also matches d1\arch\sdl\gr.c)

g3_start_frame (used by automap among others) expects grd_curscreen->sc_aspect to be the pixel aspect ratio (i.e., 1_0f in a mode with square pixels) and not the screen aspect ratio
Copy link
Collaborator

@SamBoots SamBoots left a comment

Choose a reason for hiding this comment

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

We never knew why this was broken. Thank you so much, accepted.

@SamBoots SamBoots merged commit fe69cfe into BredaUniversityGames:main Jun 8, 2024
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