From b6b26421a1029b18b48b69dbdac4bb70fb622604 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 20 Jul 2023 08:19:52 +0200 Subject: split Point/Size/Rectangle into AbsoluteScreenPixel* types to attempt to make it obvious in code what kind of coordinate system we are dealing with. The idea is that by doing this, the compile-time type checking will flush out inconsistencies between different code. I started with vcl::Window::OutputToAbsoluteScreenPixel and worked outwards from there. Change-Id: Ia967d7a0bb38886695f3a761b85c8b9340ddb1c0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154676 Tested-by: Jenkins Reviewed-by: Noel Grandin --- desktop/source/splash/splash.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'desktop') diff --git a/desktop/source/splash/splash.cxx b/desktop/source/splash/splash.cxx index f3146b2b5782..17cc7fb53438 100644 --- a/desktop/source/splash/splash.cxx +++ b/desktop/source/splash/splash.cxx @@ -466,7 +466,7 @@ void SplashScreen::SetScreenBitmap(BitmapEx &rBitmap) if ( nCount > 0 ) { // retrieve size from first screen - tools::Rectangle aScreenArea = Application::GetScreenPosSizePixel(static_cast(0)); + AbsoluteScreenPixelRectangle aScreenArea = Application::GetScreenPosSizePixel(static_cast(0)); nWidth = aScreenArea.GetWidth(); nHeight = aScreenArea.GetHeight(); } @@ -494,7 +494,7 @@ void SplashScreen::determineProgressRatioValues( if ( nCount > 0 ) { // retrieve size from first screen - tools::Rectangle aScreenArea = Application::GetScreenPosSizePixel(static_cast(0)); + AbsoluteScreenPixelRectangle aScreenArea = Application::GetScreenPosSizePixel(static_cast(0)); sal_Int32 nWidth = aScreenArea.GetWidth(); sal_Int32 nHeight = aScreenArea.GetHeight(); nScreenRatio = nHeight ? sal_Int32( rtl::math::round( double( nWidth ) / double( nHeight ), 2 ) * 100 ) : 0; -- cgit