Skip to content

Commit

Permalink
Update Sources/Plasma/PubUtilLib/plWinDpi/plWinDpi.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Johnson <[email protected]>
  • Loading branch information
Filtik and Hoikas committed May 1, 2024
1 parent e7b7e6b commit 12d51af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Plasma/PubUtilLib/plWinDpi/plWinDpi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ UINT plWinDpi::GetDpi(HWND hWnd) const
HDC hdc = GetDC(hWnd);
int ydpi = GetDeviceCaps(hdc, LOGPIXELSY);
ReleaseDC(hWnd, hdc);
return UINT(float(ydpi));
return UINT(ydpi);
}

int plWinDpi::GetSystemMetrics(int nIndex, std::variant<UINT, HWND, std::monostate> dpiArg) const
Expand Down

0 comments on commit 12d51af

Please sign in to comment.