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

feat: Add video mode sample #678

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ReenigneArcher
Copy link
Contributor

@ReenigneArcher ReenigneArcher commented Oct 19, 2024

This PR adds a new sample that sets the Xbox to the "best" video mode available.

It was not abundantly clear to me if XVideoListModes will loop through in any specific order... if it does perhaps this can be simplified.

I tested this in Xemu, but only get two possible video modes so testing was not extensive.

Note: I'm quite new to nxdk so there may be better ways to accomplish this. I did find one other similar example (https://github.com/Ryzee119/LithiumX/blob/f4471d287d44abc84803d3b901bd4aa7ed459689/src/platform/xbox/platform.c#L99-L123) after I already wrote this, but feel my code is better for selecting the highest resolution available.

@ReenigneArcher ReenigneArcher force-pushed the feat/samples/add-video-mode-sample branch from a3d4e0b to 59ddf68 Compare October 30, 2024 03:08
@ReenigneArcher ReenigneArcher changed the title feat(samples): add video mode sample feat: Add video mode sample Oct 30, 2024
@ReenigneArcher ReenigneArcher force-pushed the feat/samples/add-video-mode-sample branch from 59ddf68 to 80a3ebc Compare October 31, 2024 03:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant