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: gbc screen resolution #40

Merged
merged 7 commits into from
Dec 29, 2023
Merged

fix: gbc screen resolution #40

merged 7 commits into from
Dec 29, 2023

Conversation

thenick775
Copy link
Owner

@thenick775 thenick775 commented Dec 29, 2023

Details:

  • allows breaking aspect ratio of the canvas wrapper

  • canvas aspect ratio is now handled in css

  • video dimensions are now handled by the wasm emulator

  • bumps wasm files

End result:

  • gbc/gb games have the correct aspect ratio, with the option to fully resize in any direction

Checks:

  • physical device testing

Nick VanCise added 7 commits December 27, 2023 22:21
- initial pass at fixing gbc screen resoution shifts

- emulator controls canvas, let it dictate the canvas resolution and height

- bump wasm files
-  tentative attempt at containing different screen resolutions in the screenwrapper

- avoids layout jerk

- todo: refactor to scale canvas on resize
- use object fit contain to keep the canvas aspect ratio contained regardless of the parent aspect ratio

- remove unnecessary code
@thenick775 thenick775 merged commit 3e24bec into master Dec 29, 2023
7 checks passed
@thenick775 thenick775 deleted the gbc-screen-resolution branch December 29, 2023 18:31
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.

None yet

1 participant