[pr-fix][startup] Full screen at the start: the window is placed again once the size of the picture is known #703
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
hle
input
INTEL
lighting
linux-proton
memory
MULDER
needs-info
needs-logs
needs-rebase
NVIDIA
performance
post-merge
pr-diagnostics
pr-docs
pre-merge
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
relevance
high
relevance
low
relevance
medium
relevance
very-high
rendering
report
roadmap-proposal
saves
series-s
shaders
startup
status
blocked-by-rework
status
needs-test-report
status
needs-triage
status
ready-for-review
status
stale
status
superseded
status
wip
tools
ui
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
TrustNo1/Darner!703
Loading…
Reference in a new issue
No description provided.
Delete branch "untried844/Darner:fullscreen-at-start"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What it changes
The problem on
post-merge: withDARNER_FULLSCREEN=1the window's place at the start is worked out from its client area before the swap chain is made. The client area still has its frame then, and the system may have cut it to the screen, so the game could come up windowed or misplaced.fullscreen.rs: before the picture's size is known the whole screen is taken.ask_ensureposts a registered message to the window once the swap chain is made.host.rs: on that message the window's own thread makes it borderless if it is not (ensure_borderless), or places it again by the picture's real shape, with the backdrop for bars as before.How it was tested
post-merge28a9b42.cargo build --release --locked -p darneron this branch alone: builds.DARNER_FULLSCREENis set.DARNER_FULLSCREEN=1andDARNER_ASPECT=16:9the game started in full screen on every start over a night of testing.cargo build.cargo clippyandcargo testnot run.Checklist
post-merge(28a9b42).Checked for overlap
host.rselsewhere; each merges cleanly with thisThe change was written with a coding agent (AI-assisted) and run by me in the game.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.