Repository navigation
Engine: web video mode is exactly the requested size (no stretched 640x480) - #19
Merged
Merged
Conversation
The game rendered the menu and the first chamber at 640x480 (the device log said BackBufWidth 640) and the page stretched that 4:3 picture over the 2.16:1 iPhone screen: zoomed, horizontally squashed 3D and oversized menu text, unlike real Portal's wide view. FindVideoMode only honours a custom size if it equals the size requested when the window was created and the game is windowed; anything else falls back to the display mode list, and for a size not in that list, to mode 0 (640x480). A browser canvas has no mode list, so on the web build it now always returns the requested size. ResetCurrentModeForNewResolution logs the chosen mode ([Render360 video]) into the diagnostics error list. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qy5DKdwTqGQqScWvJyNcft
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The game rendered at 640x480 and the page stretched that 4:3 picture over the 2.16:1 iPhone screen. The result was zoomed, squashed 3D and oversized menu text.
FindVideoModeonly honours a custom size when it matches the window-creation request in windowed mode; otherwise it falls back to the display mode list, and then to mode 0 (640x480). On the web build it now always returns the requested size, and logs the chosen mode as[Render360 video]in the diagnostics.Also includes the static-prop lighting fix if PR #18 was merged before it.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Qy5DKdwTqGQqScWvJyNcft
Generated by Claude Code