diff options
Diffstat (limited to 'vcl/source/app/svapp.cxx')
-rw-r--r-- | vcl/source/app/svapp.cxx | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx index 8d99977983be..29f160e069c2 100644 --- a/vcl/source/app/svapp.cxx +++ b/vcl/source/app/svapp.cxx @@ -548,8 +548,8 @@ void Application::SetSettings( const AllSettings& rSettings ) long nOldDPIY = 0; if ( pFirstFrame ) { - nOldDPIX = pFirstFrame->mnDPIX; - nOldDPIY = pFirstFrame->mnDPIY; + nOldDPIX = pFirstFrame->GetDPIX(); + nOldDPIY = pFirstFrame->GetDPIY(); vcl::Window::ImplInitAppFontData(pFirstFrame); } vcl::Window* pFrame = pFirstFrame; @@ -583,19 +583,19 @@ void Application::SetSettings( const AllSettings& rSettings ) pFirstFrame = pSVData->maWinData.mpFirstFrame; if ( pFirstFrame ) { - if ( (pFirstFrame->mnDPIX != nOldDPIX) || - (pFirstFrame->mnDPIY != nOldDPIY) ) + if ( (pFirstFrame->GetDPIX() != nOldDPIX) || + (pFirstFrame->GetDPIY() != nOldDPIY) ) { VirtualDevice* pVirDev = pSVData->maGDIData.mpFirstVirDev; while ( pVirDev ) { if ( pVirDev->mbScreenComp && - (pVirDev->mnDPIX == nOldDPIX) && - (pVirDev->mnDPIY == nOldDPIY) ) + (pVirDev->GetDPIX() == nOldDPIX) && + (pVirDev->GetDPIY() == nOldDPIY) ) { - pVirDev->mnDPIX = pFirstFrame->mnDPIX; - pVirDev->mnDPIY = pFirstFrame->mnDPIY; - if (pVirDev->IsMapModeEnabled()) + pVirDev->SetDPIX( pFirstFrame->GetDPIX() ); + pVirDev->SetDPIY( pFirstFrame->GetDPIY() ); + if ( pVirDev->IsMapModeEnabled() ) { MapMode aMapMode = pVirDev->GetMapMode(); pVirDev->SetMapMode(); @@ -745,8 +745,8 @@ ImplSVEvent * Application::PostMouseEvent( sal_uLong nEvent, vcl::Window *pWin, { Point aTransformedPos( pMouseEvent->GetPosPixel() ); - aTransformedPos.X() += pWin->mnOutOffX; - aTransformedPos.Y() += pWin->mnOutOffY; + aTransformedPos.X() += pWin->GetOutOffXPixel(); + aTransformedPos.Y() += pWin->GetOutOffYPixel(); const MouseEvent aTransformedEvent( aTransformedPos, pMouseEvent->GetClicks(), pMouseEvent->GetMode(), pMouseEvent->GetButtons(), pMouseEvent->GetModifier() ); @@ -780,8 +780,8 @@ ImplSVEvent * Application::PostZoomEvent( sal_uLong nEvent, vcl::Window *pWin, Z { Point aTransformedPos( pZoomEvent->GetCenter() ); - aTransformedPos.X() += pWin->mnOutOffX; - aTransformedPos.Y() += pWin->mnOutOffY; + aTransformedPos.X() += pWin->GetOutOffXPixel(); + aTransformedPos.Y() += pWin->GetOutOffYPixel(); const ZoomEvent aTransformedEvent( aTransformedPos, pZoomEvent->GetScale() ); |