Skip to content

Aspect ratio calculation for VideoModes #982

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

Merged
merged 5 commits into from
Jul 31, 2022
Merged

Conversation

aquagoose
Copy link
Contributor

Summary of the PR

Adds a built-in aspect ratio calculation for the VideoMode.
A user can query a video mode's aspect ratio and it will return a Vector2D<int> with the calculated aspect ratio (although will be precalculated for speed).

Related issues, Discord discussions, or proposals

Small discussion, confirming I am creating a PR.

Further Comments

None.

@dnfadmin
Copy link

dnfadmin commented Jul 31, 2022

CLA assistant check
All CLA requirements met.

@aquagoose aquagoose requested a review from a team as a code owner July 31, 2022 17:41
@Beyley Beyley merged commit 5be866f into dotnet:main Jul 31, 2022
Beyley pushed a commit that referenced this pull request Aug 24, 2022
Note: Ratios that can be simplified like 16:10 will be reported as 8:5, blame monitor manufacturers
@aquagoose aquagoose deleted the aspect-ratio branch September 1, 2022 22:08
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.

4 participants