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

VGA Emulator: Dynamic aspect ratio #156

Open
sy2002 opened this issue Oct 3, 2020 · 0 comments
Open

VGA Emulator: Dynamic aspect ratio #156

sy2002 opened this issue Oct 3, 2020 · 0 comments
Assignees
Labels

Comments

@sy2002
Copy link
Owner

sy2002 commented Oct 3, 2020

Right now, we do have a hardcoded aspect ratio in the VGA Emulator that is equivalent to the classical WIDE setting on many VGA wide screen displays where 4:3 images are stretched to fit the screen.

This WIDE setting is optimized for displaying Q-TRIS: Q-TRIS simply looks best in this setting.

Now, that the VGA emulator is obviously (! 😄 ) used for not only running Q-TRIS but also other software, we need to overcome the hardcoded aspect ratio:

  • Add a Q> command such as aspect to the emulator, where the user can enter things like aspect 4:3 (equivalent to aspect standard, equivalent to ``aspect 1.3333) and aspect wide` (equvalent to `aspect q-tris`) and also `aspect `.

  • In WASM: Make sure that the JavaScript that currently statically initializes the size of the WASM container becomes so flexible that the WebGL window inside the browser is also being resized (needs also some messaging between the WASM application and the JavaScript)

  • In WASM we do not have access to the emulator console. There, we need to offer some keyboard combinations (that are then to be documented here) to allow the user to change the aspect ratio

  • When all this works: Change the standard to 4:3

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

No branches or pull requests

1 participant