Skip to content

Emscripten viewport #2900

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 4 commits into from
Mar 13, 2023
Merged

Emscripten viewport #2900

merged 4 commits into from
Mar 13, 2023

Conversation

Ghabry
Copy link
Member

@Ghabry Ghabry commented Feb 26, 2023

This removes the media-queries and instead uses the entire available area.

Our SDL2 code handles it internally now since the settings PR

for best comparison I recommend opening https://easyrpg.org/play/master and https://easyrpg.org/play/pr2900 on a phone or any other very high dpi display and toggle fullscreen. The difference is extreme.

Is possible thanks to new settings ui handling everything.
@Ghabry Ghabry added this to the 0.7.1 milestone Feb 26, 2023
@Ghabry Ghabry added the Emscripten WebAssembly/JavaScript port for web browsers label Feb 26, 2023
@Ghabry Ghabry force-pushed the emscripten-viewport branch from 56c6d37 to 881352a Compare February 26, 2023 13:50
@Ghabry
Copy link
Member Author

Ghabry commented Feb 26, 2023

two problems:

  • Looks good in Chromium mobile phone simulation but terrible on my phone in Firefox 🤔
  • "It is now safe" easteregg renders in wrong aspect ratio

@Ghabry Ghabry marked this pull request as draft February 26, 2023 13:56
@Ghabry Ghabry marked this pull request as ready for review March 13, 2023 15:55
@Ghabry
Copy link
Member Author

Ghabry commented Mar 13, 2023

Rendering looks now much better because the size of the canvas matches the sdl2 window:

Bilinear: left old, right new

grafik

Integer: left old, right new

grafik

@fdelapena fdelapena merged commit dbcd100 into EasyRPG:master Mar 13, 2023
@Ghabry Ghabry deleted the emscripten-viewport branch June 12, 2023 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Emscripten WebAssembly/JavaScript port for web browsers
Development

Successfully merging this pull request may close these issues.

2 participants