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 9ed9c40 commit e7b7e6b
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 @@ -160,7 +160,7 @@ UINT plWinDpi::GetDpi(HWND hWnd) const
auto dpiForMonitor = fGetDpiForMonitor(monitor, MDT_EFFECTIVE_DPI, &dpiX, &dpiY);
if (dpiForMonitor.has_value()) {
if (SUCCEEDED(dpiForMonitor.value()))
return UINT(float(dpiY));
return dpiY;
LogRed("Per-Monitor DPI failed: {}", hsCOMError(dpiForMonitor.value()));
}

Expand Down

0 comments on commit e7b7e6b

Please sign in to comment.