hidpi: Set the mnDPIScale during initialization too, of course.

Change-Id: I71b4607d08c7f764670903c5c8e66f451fe2eb57
This commit is contained in:
Jan Holesovsky
2014-01-28 17:06:40 +01:00
parent 780eb9f704
commit ba9b0e9c1a

View File

@@ -977,6 +977,9 @@ void Window::ImplInit( Window* pParent, WinBits nStyle, SystemParentData* pSyste
}
// setup the scale factor for Hi-DPI displays
mnDPIScaleFactor = std::max((sal_Int32)1, (mpWindowImpl->mpFrameData->mnDPIY + 48) / 96);
const StyleSettings& rStyleSettings = maSettings.GetStyleSettings();
sal_uInt16 nScreenZoom = rStyleSettings.GetScreenZoom();
mnDPIX = (mpWindowImpl->mpFrameData->mnDPIX*nScreenZoom)/100;