• sungmann.cho's avatar
    [Win] CustomFrameView::IconSize() should return the value in dip unit · bfff1719
    sungmann.cho authored
    CustomFrameView::IconSize() returns the size of the window icon. On Windows,
    the value is obtained from GetSystemMetrics(SM_CYSMICON) call, but the problem
    is that the value returned is in pixel, not in dip. This leads to a wrong sized
    window icon if an user is using a higher scale ratio. This CL replaces
    GetSystemMetrics() with display::win::GetSystemMetricsInDIP() to fix this.
    
    BUG=631488
    TEST=See the bug page for the reproduce steps
    
    Review-Url: https://codereview.chromium.org/2190593002
    Cr-Commit-Position: refs/heads/master@{#408290}
    bfff1719
custom_frame_view.cc 24 KB