Skip to content

Engine: web video mode is exactly the requested size (no stretched 640x480) - #19

Merged
matthewcodergamer merged 1 commit into
masterfrom
render360/iphone-baseline-lowmem
Oct 10, 2026
Merged

matthewcodergamer merged 1 commit into
masterfrom
render360/iphone-baseline-lowmem

Conversation

@matthewcodergamer

Copy link
Copy Markdown
Owner

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.

FindVideoMode only 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

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
@matthewcodergamer
matthewcodergamer merged commit f93b6f2 into master Oct 10, 2026
4 checks passed

This branch was successfully deployed

1 active deployment
portal-iphone-staging — c1b7dddd Deployed Oct 10, 2026 by matthewcodergamer via Deploy iPhone staging page #318
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