summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-06-30 08:57:26 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-06-30 08:57:26 +0200
commitbba50dbe7e0fd16fba324c675d49991afd62bcb1 (patch)
tree095691bd7a1d1cff93c6f39a3f5fa2750ed67e54 /vcl
parentc6636c588be1f68f1ec0acc9001a1057f8e1885c (diff)
Fix previous commit for non-MACOSX
Change-Id: I5192d299910120e65ad577fa63846e13a1c31e76
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/window.cxx11
1 files changed, 4 insertions, 7 deletions
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index a300b012b587..04d8e8d5c3b2 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -926,8 +926,6 @@ void Window::ReleaseGraphics( bool bRelease )
static sal_Int32 CountDPIScaleFactor(sal_Int32 nDPI)
{
- sal_Int32 nResult;
-
#ifndef MACOSX
// Setting of HiDPI is unfortunately all only a heuristic; and to add
// insult to an injury, the system is constantly lying to us about
@@ -935,17 +933,16 @@ 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 > 216) // 96 * 2 + 96 / 4
- nResult = 250;
+ return 250;
else if (nDPI > 168) // 96 * 2 - 96 / 4
- nResult = 200;
+ return 200;
else if (nDPI > 120) // 96 * 1.5 - 96 / 4
- nResult = 150;
+ return 150;
#else
(void)nDPI;
- nResult = 100;
#endif
- return nResult;
+ return 100;
}
void Window::ImplInit( vcl::Window* pParent, WinBits nStyle, SystemParentData* pSystemParentData )