diff options
author | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-11 20:22:55 +0000 |
---|---|---|
committer | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-11 20:22:55 +0000 |
commit | 782a8e944d0276660e8c8c54b9d4db33b05473ca (patch) | |
tree | e37c5ba36033810b67848b2ea805b17b93d2c713 /mojo/examples/compositor_app | |
parent | be4bd27a44371080aef394767c8ba960d17af2f8 (diff) | |
download | chromium_src-782a8e944d0276660e8c8c54b9d4db33b05473ca.zip chromium_src-782a8e944d0276660e8c8c54b9d4db33b05473ca.tar.gz chromium_src-782a8e944d0276660e8c8c54b9d4db33b05473ca.tar.bz2 |
Fix the black patch which would appear at the top of app windows in Chrome desktop windows with HiDPI
The bug occurs because the non client insets which account for the window frame are retrieved via the
GetSystemMetrics API which returns values in pixels.
Changes as below:-
1. Renamed the GlassAppWindowFrameViewWin::GetGlassInsets function to GetGlassInsetsInDIP.
2. Replaced calls to the GetSystemMetrics API in the GetGlassInsetsInDIP function with the dpi helper
GetSystemMetricsInDIP.
3. Added code to convert the insets to pixels in the AppWindowDesktopWindowTreeHostWin::UpdateDWMFrame
function.
BUG=392603
TBR=benwells
Review URL: https://codereview.chromium.org/382013004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282682 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'mojo/examples/compositor_app')
0 files changed, 0 insertions, 0 deletions