Skip to content

Emscripten: Use window size for canvas initialization#261

Merged
TheMostDiligent merged 1 commit intoDiligentGraphics:masterfrom
MikhailGorobets:mg/emscripten_resize_fix
Feb 3, 2026
Merged

Emscripten: Use window size for canvas initialization#261
TheMostDiligent merged 1 commit intoDiligentGraphics:masterfrom
MikhailGorobets:mg/emscripten_resize_fix

Conversation

@MikhailGorobets
Copy link
Contributor

@TheMostDiligent
Copy link
Contributor

TheMostDiligent commented Feb 2, 2026

Did you try this on high-DPI displays, Macs in particular. This windows size computation is such a mess in Web.

@MikhailGorobets
Copy link
Contributor Author

MikhailGorobets commented Feb 2, 2026

Did you try this on high-DPI displays, Macs in particular. This windows size computation is such a mess in Web.

On Mac, my application that uses a similar html_template works correctly (the JS code responsible for this is removed there). However, I haven’t run the Diligent samples themselves.

@TheMostDiligent TheMostDiligent merged commit fa210ec into DiligentGraphics:master Feb 3, 2026
29 checks passed
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.

2 participants