Allow resizing by default and recreate swapchain on resize #763
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!763
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/763/head"
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?
@fayaz12g on GitHub · 2026-09-22 03:47 UTC · original
fayaz12g:main→main· +33 −15 · 2 files · 5 commits · merged 2026-09-23 13:49 UTCAllow the emulator window to be resized from launch, including when starting in fullscreen. Recreate the Vulkan swapchain when the drawable pixel size changes so the presented image fills the resized window.
This supports ultrawide gameplay when a game patch renders at that aspect ratio. Resizing alone stretches the existing image; it does not change the game's rendering aspect ratio. The separate
--stretchoption and launcher checkbox are no longer needed.The original Astro Bot ultrawide/any aspect ratio patch can be generated at https://aar.fayaz.one (with options to add existing community patches).
Screenshots from the original PR:
Build checked with
cmake --build _Build/sdl3 --target kyty_emulator -j 4.stretch to windowsupport 77c1639856@coderabbitai[bot] on GitHub · 2026-09-22 03:51 UTC · original · edited 2026-09-23 13:50 UTC
Navigate logical layers of code changes, visualize relationships, and explore their blast radius.
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: Repository: KytyPS5/KytyPS5/.coderabbit.yaml
Review profile: CHILL
Plan: Advanced
Run ID:
c57de5a1-2017-4bc3-aca7-10fcbe1e21fa📥 Commits
Reviewing files that changed from the base of the PR and between
2bfb929ca4andbf5a6d2c6c.📒 Files selected for processing (1)
src/launcher/include/configuration.hIncluded review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
📝 Walkthrough
Walkthrough
The launcher adds a
Stretch to windowcheckbox. Its value is loaded from and saved toConfigurationandQSettings. When enabled, the launcher adds--stretchto emulator arguments.ParseArgsrecognizes the flag and enablesConfigOptions::window_stretch_enabled. The common configuration API exposes the setting throughConfig::WindowStretchEnabled().WindowCreateuses this setting to control SDL window resizing.Suggested reviewers:
nmzikPriority: ⬇️ Low
Change: Feature
Merge Risk: ⚪ Minimal · up to
bf5a6The stretch option is discoverable, persisted, propagated, and applied correctly; no actionable merge risk remains.
🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
--stretchsetting rather than enabling resizing by default, and th…--stretchand the launcher checkbox are no lo…Comment
@coderabbitai helpto get the list of available commands.@coderabbitai[bot] on GitHub · 2026-09-22 03:51 UTC · original · reviewed
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository: KytyPS5/KytyPS5/.coderabbit.yaml
Review profile: CHILL
Plan: Advanced
Run ID:
dc379afc-05f2-475e-91ad-67668f9a8187📥 Commits
Reviewing files that changed from the base of the PR and between
ba55ba5dc5and 7ea431a5b3e676a25c4ce493f7c358c0f9819ffa.📒 Files selected for processing (7)
src/common/emulatorConfig.cppsrc/common/emulatorConfig.hsrc/launcher/forms/configuration_edit_dialog.uisrc/launcher/include/configuration.hsrc/launcher/src/configurationEditDialog.cppsrc/launcher/src/mainDialog.cppsrc/main.cppIncluded review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
@fayaz12g on GitHub · 2026-09-22 03:58 UTC · original
Addressed.