crosvm/gpu_display
Pujun Lun a1c2173bbf Override host monitor DPI for remote desktop sessions.
We found that when we are using a remote desktop, the monitor DPI
reported by GetDpiForMonitor() may not make sense. For example, on
Chrome Remote Desktop we always get 25 DPI, while the standard DPI is
96. Because of that, the calculated guest DPI is also too low, and all
the UI elements in the guest appear very small.

This might be a flaw in Windows Remote Desktop Protocol. As a
workaround, we would just assume the monitor DPI is the standard value
if we find that KiwiVM is running in a remote session.

Bug: 273810154
Test: Ran B* in CRD and checked the Overlay UI size
Change-Id: Ie335fe8df394b19733bbee8f70931c29b836f3d3
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4804796
Reviewed-by: Vikram Auradkar <auradkar@google.com>
Commit-Queue: Kaiyi Li <kaiyili@google.com>
2023-09-08 21:29:23 +00:00
..
examples tree-wide: apply nightly rustfmt 2023-03-27 21:30:45 +00:00
protocol health-check: Add check for newline at ends of files 2022-08-18 00:17:04 +00:00
src Override host monitor DPI for remote desktop sessions. 2023-09-08 21:29:23 +00:00
build.rs gpu_display: find wayland-scanner with which in build.rs 2023-02-27 21:18:21 +00:00
Cargo.toml gpu_display: find wayland-scanner with which in build.rs 2023-02-27 21:18:21 +00:00