Repository navigation
fix(session): announce real display DPI instead of hardcoded Mac 144 - #1367
Merged
capy-ai[bot] merged 2 commits intoNov 3, 2026
Merged
Conversation
Compute physical DPI as (logical size × devicePixelRatio) / panel mm and send it in clientRequestMonitorSettings so remote Windows UI scaling matches Retina and other HiDPI displays. Also expose GFN's Mac 3.5K (3456x2160) preset in the 16:10 catalog. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
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
dpi: 144(macOS) /96(else) inclientRequestMonitorSettingswith the active display's physical DPI:(logical size × devicePixelRatio × 25.4) / physicalSize_mm.screenDpi/devicePixelRatiofrom the Qt client onsession.createso remote Windows UI scaling (e.g. Battle.net chrome) matches HiDPI panels.3456×2160under 16:10, and allow that mode through the H.264 embedded pixel gate (official GFN streams it as H.264).Why
On Retina Macs, Qt's
physicalDotsPerInch()alone under-reports (~128). The old fixed144made launcher UI look smaller than stock GeForce NOW. Using framebuffer pixels / panel mm yields ~255 on a 14″ MBP and is the same formula for Win/Linux when EDIDphysicalSizeis present.Caveats
physicalSize, falls back tophysicalDotsPerInch(), then96 × devicePixelRatio.Test plan
cargo test --bin opennow-core session_dpi_uses_reported_screen_dpicargo test --bin opennow-core embedded_resolution_fallbacks_match_the_qt_supported_mode_catalogcargo test --bin opennow-core embedded_codec_caps_and_decode_dimensions_are_session_localMade with Cursor