diff options
Diffstat (limited to 'vcl/source/window/scrwnd.cxx')
-rw-r--r-- | vcl/source/window/scrwnd.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/vcl/source/window/scrwnd.cxx b/vcl/source/window/scrwnd.cxx index 51838b82da7a..3fd68cf09351 100644 --- a/vcl/source/window/scrwnd.cxx +++ b/vcl/source/window/scrwnd.cxx @@ -222,19 +222,19 @@ void ImplWheelWindow::ImplRecalcScrollValues() else if( !o3tl::convertsToAtLeast(fValX, LONG_MIN) ) mnActDeltaX = LONG_MIN; else - mnActDeltaX = static_cast<long>(fValX); + mnActDeltaX = static_cast<tools::Long>(fValX); if( !o3tl::convertsToAtMost(fValY, LONG_MAX) ) mnActDeltaY = LONG_MAX; else if( !o3tl::convertsToAtLeast(fValY, LONG_MIN) ) mnActDeltaY = LONG_MIN; else - mnActDeltaY = static_cast<long>(fValY); + mnActDeltaY = static_cast<tools::Long>(fValY); } } } -PointerStyle ImplWheelWindow::ImplGetMousePointer( long nDistX, long nDistY ) +PointerStyle ImplWheelWindow::ImplGetMousePointer( tools::Long nDistX, tools::Long nDistY ) { PointerStyle eStyle; const StartAutoScrollFlags nFlags = ImplGetSVData()->mpWinData->mnAutoScrollFlags; @@ -310,8 +310,8 @@ void ImplWheelWindow::MouseMove( const MouseEvent& rMEvt ) FloatingWindow::MouseMove( rMEvt ); const Point aMousePos( OutputToScreenPixel( rMEvt.GetPosPixel() ) ); - const long nDistX = aMousePos.X() - maCenter.X(); - const long nDistY = aMousePos.Y() - maCenter.Y(); + const tools::Long nDistX = aMousePos.X() - maCenter.X(); + const tools::Long nDistY = aMousePos.Y() - maCenter.Y(); mnActDist = static_cast<sal_uLong>(hypot( static_cast<double>(nDistX), nDistY )); |