diff options
author | Jan Holesovsky <kendy@collabora.com> | 2014-04-08 18:50:22 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-04-09 10:06:32 +0000 |
commit | 972d8d87e46a0b3be651240261952fe428e2e3e2 (patch) | |
tree | ef24551492ad4fa4bad0c33abc036171f98605f0 /vcl | |
parent | fda3802e25c760138fc1adfe697fbf0e54d9ac05 (diff) |
hidpi: Forgotten rounding.
Change-Id: Ie790b40ac86708768f52084538aa08f99df7def6
Reviewed-on: https://gerrit.libreoffice.org/8895
Reviewed-by: Keith Curtis <keithcu@gmail.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-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 3fb1f006a44b..be231bec8ceb 100644 --- a/vcl/source/window/window.cxx +++ b/vcl/source/window/window.cxx @@ -743,7 +743,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; |