windows: bump windows-sys to 0.52
This commit is contained in:
parent
babbb715c5
commit
2491f2bbd6
6 changed files with 11 additions and 11 deletions
|
|
@ -105,7 +105,7 @@ pub unsafe fn hwnd_dpi(hwnd: HWND) -> u32 {
|
|||
if unsafe { IsProcessDPIAware() } != false.into() {
|
||||
// If the process is DPI aware, then scaling must be handled by the application using
|
||||
// this DPI value.
|
||||
unsafe { GetDeviceCaps(hdc, LOGPIXELSX) as u32 }
|
||||
unsafe { GetDeviceCaps(hdc, LOGPIXELSX as i32) as u32 }
|
||||
} else {
|
||||
// If the process is DPI unaware, then scaling is performed by the OS; we thus return
|
||||
// 96 (scale factor 1.0) to prevent the window from being re-scaled by both the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue