Kaydet (Commit) d662116b authored tarafından Chris Sherlock's avatar Chris Sherlock Kaydeden (comit) Caolán McNamara

fdo#74424 Use Window::GetOutDev() to access ImplGetDPI(X|Y)()

Part of the decoupling of Window from OutputDevice. We now get
the Window's OutputDevice instance and manipulate this. Do not rely
on the inherited function.

Conflicts:
	include/vcl/window.hxx

Change-Id: I93c83578eb92cdf10c7009f98e91ab177879c141
Reviewed-on: https://gerrit.libreoffice.org/7788Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 625971b1
......@@ -9471,8 +9471,9 @@ void Window::ImplPaintToDevice( OutputDevice* i_pTargetOutDev, const Point& i_rP
sal_Bool bDevOutput = mbDevOutput;
mbDevOutput = true;
long nOldDPIX = ImplGetDPIX();
long nOldDPIY = ImplGetDPIY();
const OutputDevice *pOutDev = GetOutDev();
long nOldDPIX = pOutDev->ImplGetDPIX();
long nOldDPIY = pOutDev->ImplGetDPIY();
mnDPIX = i_pTargetOutDev->ImplGetDPIX();
mnDPIY = i_pTargetOutDev->ImplGetDPIY();
sal_Bool bOutput = IsOutputEnabled();
......
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