Repository navigation
Conversation
The window size stays in points. scaleFactor reports the pixels per point, as the Wayland backend does, and follows the window when it moves to a screen with a different density. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Change-Id: Ic8bfc6e2ae393d0cdb1541bff2882e60981b1971
0x6e
approved these changes
Oct 28, 2026
Member
|
Nit: do we want to keep the Claude explanation comments? |
lemirep
approved these changes
Oct 29, 2026
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.
On macOS,
Window::scaleFactorstayed at its default of 1.0, so applications could not size their swapchains for retina displays.The Cocoa platform window now sets
scaleFactorto the backing scale factor:windowDidChangeBackingProperties:, when the window moves to a screen with a different pixel density.Window sizes stay in points, which matches the Wayland backend's convention of logical sizes plus a scale factor.
Tested with KDGpu's examples on a MacBook Pro with the built-in retina display and an external 1x display.
🤖 Generated with Claude Code