diff options
author | Jan Holesovsky <kendy@collabora.com> | 2014-04-08 18:50:22 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2014-04-08 18:50:22 +0200 |
commit | 5a26036cbfd9a2815d805359d936bf2cabe37e40 (patch) | |
tree | be1ee8c4567e38ddc0398ad6123e00c058d876b2 | |
parent | 930f669be1100bfa1447f60cc379d51d18224dff (diff) |
hidpi: Forgotten rounding.
Change-Id: Ie790b40ac86708768f52084538aa08f99df7def6
-rw-r--r-- | vcl/source/window/window.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx index ef6e2bb12265..7d6c3cdb976a 100644 --- a/vcl/source/window/window.cxx +++ b/vcl/source/window/window.cxx @@ -865,7 +865,7 @@ static sal_Int32 CountDPIScaleFactor(sal_Int32 nDPI) // eg. fdo#77059 - set the value from which we do consider the // screen hi-dpi to greater than 168 if (nDPI > 168) - nResult = std::max(sal_Int32(1), (nDPI) / 96); + nResult = std::max(sal_Int32(1), (nDPI + 48) / 96); #endif return nResult; |