HLE: add a configurable maximum title window size #251

Open
fluffyflattershy-afk wants to merge 1 commit from upstream-pr/251 into main
fluffyflattershy-afk commented 2026-11-24 23:00:12 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by fluffyflattershy-afk on 2026-11-24T23:00:12Z.


Change

Add VICTORY_WINDOW_MAX=WIDTHxHEIGHT for title windows. With 1920x1080, a title that requests 3840×2160 can fit into a 1080p window on a larger desktop. The window keeps the title’s aspect ratio and fits the monitor work area. The title keeps its render resolution.

Verification

  • cargo test --locked --offline -p victory-hle lifecycle -- --test-threads=1 passed all 8 tests, including parsing, work-area bounds, non-widescreen sizing and a 1×1 limit.
  • cargo xtask policy passed.
  • A local Windows 11 Series X-profile run logged a 3840×2160 request fitted to 1920×1080 and reached the opening scene.

AI-assisted with Codex.

<!-- greyfinch-sync:fxceless/victory-fork:issue:6593129458 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/251). Originally posted by [fluffyflattershy-afk](https://github.com/fluffyflattershy-afk) on 2026-11-24T23:00:12Z. --- ## Change Add `VICTORY_WINDOW_MAX=WIDTHxHEIGHT` for title windows. With `1920x1080`, a title that requests 3840×2160 can fit into a 1080p window on a larger desktop. The window keeps the title’s aspect ratio and fits the monitor work area. The title keeps its render resolution. ## Verification - `cargo test --locked --offline -p victory-hle lifecycle -- --test-threads=1` passed all 8 tests, including parsing, work-area bounds, non-widescreen sizing and a 1×1 limit. - `cargo xtask policy` passed. - A local Windows 11 Series X-profile run logged a 3840×2160 request fitted to 1920×1080 and reached the opening scene. AI-assisted with Codex.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/251:upstream-pr/251'
git switch 'upstream-pr/251'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/251'
git switch 'upstream-pr/251'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/251'
git switch 'upstream-pr/251'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/251'
git switch 'main'
git merge --squash 'upstream-pr/251'
git switch 'main'
git merge --ff-only 'upstream-pr/251'
git switch 'main'
git merge 'upstream-pr/251'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
fxceless/victory-fork!251
No description provided.