hidpi: Set the mnDPIScale during initialization too, of course.
Change-Id: I71b4607d08c7f764670903c5c8e66f451fe2eb57
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user