Fix window sizing when "Show Title Bar" is enabled #247

Merged
EmulationEnjoyer merged 5 commits from window_sizing_fix into master 2024-11-15 07:26:35 +00:00
EmulationEnjoyer commented 2024-11-15 01:19:52 +00:00 (Migrated from github.com)

Fixes a bug that causes the main window to not size properly when the TitleBar is enabled (i.e.: when the TitleBar and MenuStrip are separate entities). Corrects the size for main window startup and when a user clicks a "View > Window Size > Resolution Here" MenuStripItem

Prior to this fix if a user selects 720p/1080p and "Show Title Bar" is enabled, the window would be sized smaller than intended and display black bars on the sides of the render area

window_sizing_fix

Fixes a window height calculation issue

Fixes a bug that causes the main window to not size properly when the TitleBar is enabled (i.e.: when the TitleBar and MenuStrip are separate entities). Corrects the size for main window startup and when a user clicks a "View > Window Size > *Resolution Here*" MenuStripItem Prior to this fix if a user selects 720p/1080p and "Show Title Bar" is enabled, the window would be sized smaller than intended and display black bars on the sides of the render area ![window_sizing_fix](https://github.com/user-attachments/assets/9835c9ed-c5ee-4daf-8364-f2b4576f533e) Fixes a window height calculation issue
GreemDev (Migrated from github.com) requested changes 2024-11-15 01:22:17 +00:00
GreemDev (Migrated from github.com) commented 2024-11-15 01:20:59 +00:00

make this resolutionWidth & resolutionHeight, respectively

make this `resolutionWidth` & `resolutionHeight`, respectively
GreemDev (Migrated from github.com) commented 2024-11-15 01:21:41 +00:00

make this windowWidthScaled and windowHeightScaled, respectively

make this `windowWidthScaled` and `windowHeightScaled`, respectively
github-actions[bot] commented 2024-11-15 06:30:41 +00:00 (Migrated from github.com)
Download the artifacts for this pull request: * [ryujinx-Release-1.2.0+1f5271b-linux_arm64](https://nightly.link/GreemDev/Ryujinx/actions/artifacts/2191634513.zip) * [ryujinx-Release-1.2.0+1f5271b-linux_arm64-AppImage](https://nightly.link/GreemDev/Ryujinx/actions/artifacts/2191634650.zip) * [ryujinx-Release-1.2.0+1f5271b-linux_x64](https://nightly.link/GreemDev/Ryujinx/actions/artifacts/2191637951.zip) * [ryujinx-Release-1.2.0+1f5271b-linux_x64-AppImage](https://nightly.link/GreemDev/Ryujinx/actions/artifacts/2191638006.zip) * [ryujinx-Release-1.2.0+1f5271b-macos_universal](https://nightly.link/GreemDev/Ryujinx/actions/artifacts/2191642441.zip) * [ryujinx-Release-1.2.0+1f5271b-win_x64](https://nightly.link/GreemDev/Ryujinx/actions/artifacts/2191644865.zip) <details><summary>GUI-less (SDL2)</summary> * [sdl2-ryujinx-headless-Release-1.2.0+1f5271b-linux_arm64](https://nightly.link/GreemDev/Ryujinx/actions/artifacts/2191634763.zip) * [sdl2-ryujinx-headless-Release-1.2.0+1f5271b-linux_x64](https://nightly.link/GreemDev/Ryujinx/actions/artifacts/2191638110.zip) * [sdl2-ryujinx-headless-Release-1.2.0+1f5271b-macos_universal](https://nightly.link/GreemDev/Ryujinx/actions/artifacts/2191642740.zip) * [sdl2-ryujinx-headless-Release-1.2.0+1f5271b-win_x64](https://nightly.link/GreemDev/Ryujinx/actions/artifacts/2191644978.zip) </details> <details><summary>Only for Developers</summary> * [ryujinx-Debug-1.2.0+1f5271b-linux_arm64](https://nightly.link/GreemDev/Ryujinx/actions/artifacts/2191635146.zip) * [ryujinx-Debug-1.2.0+1f5271b-linux_arm64-AppImage](https://nightly.link/GreemDev/Ryujinx/actions/artifacts/2191635254.zip) * [sdl2-ryujinx-headless-Debug-1.2.0+1f5271b-linux_arm64](https://nightly.link/GreemDev/Ryujinx/actions/artifacts/2191635378.zip) * [ryujinx-Debug-1.2.0+1f5271b-linux_x64](https://nightly.link/GreemDev/Ryujinx/actions/artifacts/2191640394.zip) * [ryujinx-Debug-1.2.0+1f5271b-linux_x64-AppImage](https://nightly.link/GreemDev/Ryujinx/actions/artifacts/2191640455.zip) * [sdl2-ryujinx-headless-Debug-1.2.0+1f5271b-linux_x64](https://nightly.link/GreemDev/Ryujinx/actions/artifacts/2191640744.zip) * [ryujinx-Debug-1.2.0+1f5271b-macos_universal](https://nightly.link/GreemDev/Ryujinx/actions/artifacts/2191641893.zip) * [sdl2-ryujinx-headless-Debug-1.2.0+1f5271b-macos_universal](https://nightly.link/GreemDev/Ryujinx/actions/artifacts/2191641987.zip) * [ryujinx-Debug-1.2.0+1f5271b-win_x64](https://nightly.link/GreemDev/Ryujinx/actions/artifacts/2191647649.zip) * [sdl2-ryujinx-headless-Debug-1.2.0+1f5271b-win_x64](https://nightly.link/GreemDev/Ryujinx/actions/artifacts/2191647747.zip) </details>
GreemDev (Migrated from github.com) approved these changes 2024-11-15 07:25:30 +00:00
Sign in to join this conversation.
No description provided.