Kaydet (Commit) ba9b0e9c authored tarafından Jan Holesovsky's avatar Jan Holesovsky

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

Change-Id: I71b4607d08c7f764670903c5c8e66f451fe2eb57
üst 780eb9f7
...@@ -977,6 +977,9 @@ void Window::ImplInit( Window* pParent, WinBits nStyle, SystemParentData* pSyste ...@@ -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(); const StyleSettings& rStyleSettings = maSettings.GetStyleSettings();
sal_uInt16 nScreenZoom = rStyleSettings.GetScreenZoom(); sal_uInt16 nScreenZoom = rStyleSettings.GetScreenZoom();
mnDPIX = (mpWindowImpl->mpFrameData->mnDPIX*nScreenZoom)/100; mnDPIX = (mpWindowImpl->mpFrameData->mnDPIX*nScreenZoom)/100;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment