[Libreoffice-commits] .: vcl/win
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Wed Dec 12 22:32:24 PST 2012
vcl/win/source/window/salframe.cxx | 20 +++++++-------------
1 file changed, 7 insertions(+), 13 deletions(-)
New commits:
commit 6b5059c7b7129c3b9f00d784b6fa5248a24a6d4b
Author: Noel Grandin <noel at peralex.com>
Date: Thu Dec 13 08:25:16 2012 +0200
fix my UNO changes for MS-Windows build
Change-Id: I137eada05aa74ab8f0a524f17f519e11c27fceb5
diff --git a/vcl/win/source/window/salframe.cxx b/vcl/win/source/window/salframe.cxx
index b673c46..a23ed43 100644
--- a/vcl/win/source/window/salframe.cxx
+++ b/vcl/win/source/window/salframe.cxx
@@ -786,24 +786,18 @@ static void ImplSalCalcFullScreenSize( const WinSalFrame* pFrame,
sal_Int32 nMonitors = Application::GetScreenCount();
if( (pFrame->mnDisplay >= 0) && (pFrame->mnDisplay < nMonitors) )
{
- com::sun::star::awt::Rectangle aRect = Application::GetScreenPosSizePixel( pFrame->mnDisplay );
- nScreenX = aRect.X;
- nScreenY = aRect.Y;
- nScreenDX = aRect.Width+1; // difference between java/awt convention and vcl
- nScreenDY = aRect.Height+1; // difference between java/awt convention and vcl
+ Rectangle aRect = Application::GetScreenPosSizePixel( pFrame->mnDisplay );
+ nScreenX = aRect.Left();
+ nScreenY = aRect.Top();
+ nScreenDX = aRect.GetWidth()+1; // difference between java/awt convention and vcl
+ nScreenDY = aRect.GetHeight()+1; // difference between java/awt convention and vcl
}
else
{
- Rectangle aCombined;
- com::sun::star::awt::Rectangle aRect = Application::GetScreenPosSizePixel( 0 );
- aCombined.Left() = aRect.X;
- aCombined.Top() = aRect.Y;
- aCombined.Right() = aRect.X + aRect.Width;
- aCombined.Bottom() = aRect.Y + aRect.Height;
+ Rectangle aCombined = Application::GetScreenPosSizePixel( 0 );
for( sal_Int32 i = 1 ; i < nMonitors ; i++ )
{
- aRect = Application::GetScreenPosSizePixel( i );
- aCombined.Union( Rectangle( aRect.X, aRect.Y, aRect.X+aRect.Width, aRect.Y+aRect.Height ) );
+ aCombined.Union( Application::GetScreenPosSizePixel( i ) );
}
nScreenX = aCombined.Left();
nScreenY = aCombined.Top();
More information about the Libreoffice-commits
mailing list