[Libreoffice-commits] core.git: vcl/source
Jan Holesovsky
kendy at collabora.com
Tue Apr 8 10:55:02 PDT 2014
vcl/source/window/window.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 5a26036cbfd9a2815d805359d936bf2cabe37e40
Author: Jan Holesovsky <kendy at collabora.com>
Date: Tue Apr 8 18:50:22 2014 +0200
hidpi: Forgotten rounding.
Change-Id: Ie790b40ac86708768f52084538aa08f99df7def6
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index ef6e2bb..7d6c3cd 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;
More information about the Libreoffice-commits
mailing list