[Libreoffice-commits] core.git: Branch 'libreoffice-4-2' - vcl/source
Jan Holesovsky
kendy at collabora.com
Wed Apr 9 03:07:00 PDT 2014
vcl/source/window/window.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 972d8d87e46a0b3be651240261952fe428e2e3e2
Author: Jan Holesovsky <kendy at collabora.com>
Date: Tue Apr 8 18:50:22 2014 +0200
hidpi: Forgotten rounding.
Change-Id: Ie790b40ac86708768f52084538aa08f99df7def6
Reviewed-on: https://gerrit.libreoffice.org/8895
Reviewed-by: Keith Curtis <keithcu at gmail.com>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index 3fb1f00..be231be 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;
More information about the Libreoffice-commits
mailing list