Repository navigation
Conversation
…d fullscreen modes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
WMTWindowPlacement(src/winemetal/winemetal.h, populated insrc/mullion/mullion_window.hpp) with the top-level outer window dimensions (window_width,window_height) and primary screen height (screen_height).WMTComputeWindowPlacementRect()(src/winemetal/unix/mullion_placement.h) and call it fromMullionPlace()(src/winemetal/unix/winemetal_unix.c):max(screen_width / cocoa_w, screen_height / cocoa_h)so emulated display modes with a different aspect ratio than the physical monitor (e.g., 16:10 or 21:9 on a 16:9 display) scale uniformly instead of overflowing or stretching.window_width == top_level_width && window_height == top_level_height) on both axes for pillarboxing/letterboxing, while preserving the Wine-drawn border and caption calculation for decorated windows.tests/host/window_placement.cpp(registered ashost_window_placementintests/host/meson.build) covering native 4K Retina fullscreen, 16:10 pillarboxed fullscreen, 21:9 letterboxed fullscreen, and decorated windows with child control offsets (flipped and unflipped).Verification
tests/host/window_placement.cpplocally with Apple Clang (-std=c++20 -Wall -Wextra): all cases passed.src/winemetal/unix/mullion_placement.hcompiles cleanly as Objective-C (-Wall -Wextra) andsrc/mullion/mullion_window.hppsyntax-checks cleanly withx86_64-w64-mingw32-g++ -std=c++20 -Wall -Wextra.