vcl/source/window/window.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 972d8d87e46a0b3be651240261952fe428e2e3e2
Author: Jan Holesovsky <ke...@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 <keit...@gmail.com>
    Reviewed-by: Caolán McNamara <caol...@redhat.com>
    Tested-by: Caolán McNamara <caol...@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;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to