summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--desktop/source/lib/init.cxx4
-rw-r--r--include/vcl/window.hxx2
-rw-r--r--toolkit/source/awt/vclxwindow.cxx2
-rw-r--r--vcl/source/window/paint.cxx2
4 files changed, 5 insertions, 5 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index c8fc49c94bf8..717a542a9f27 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -5168,7 +5168,7 @@ static void doc_paintWindowForView(LibreOfficeKitDocument* pThis, unsigned nLOKW
aMapMode.SetOrigin(Point(-(nX / fDPIScale), -(nY / fDPIScale)));
pDevice->SetMapMode(aMapMode);
- pWindow->PaintToDevice(pDevice.get(), Point(0, 0), Size());
+ pWindow->PaintToDevice(pDevice.get(), Point(0, 0));
CGContextRelease(cgc);
@@ -5183,7 +5183,7 @@ static void doc_paintWindowForView(LibreOfficeKitDocument* pThis, unsigned nLOKW
aMapMode.SetOrigin(Point(-(nX / fDPIScale), -(nY / fDPIScale)));
pDevice->SetMapMode(aMapMode);
- pWindow->PaintToDevice(pDevice.get(), Point(0, 0), Size());
+ pWindow->PaintToDevice(pDevice.get(), Point(0, 0));
#endif
comphelper::LibreOfficeKit::setDialogPainting(false);
diff --git a/include/vcl/window.hxx b/include/vcl/window.hxx
index 360c982e818f..66d61ead5478 100644
--- a/include/vcl/window.hxx
+++ b/include/vcl/window.hxx
@@ -1545,7 +1545,7 @@ public:
bool IsNativeWidgetEnabled() const;
// a helper method for a Control's Draw method
- void PaintToDevice( ::OutputDevice* pDevice, const Point& rPos, const Size& rSize );
+ void PaintToDevice( ::OutputDevice* pDevice, const Point& rPos );
/* tdf#119390 set parent to default window. Typically for use in advance of destroying
* a floating windows which has the current focus so focus will revert to the main
diff --git a/toolkit/source/awt/vclxwindow.cxx b/toolkit/source/awt/vclxwindow.cxx
index 8c7b306b084e..dbeeb20f0cdd 100644
--- a/toolkit/source/awt/vclxwindow.cxx
+++ b/toolkit/source/awt/vclxwindow.cxx
@@ -2280,7 +2280,7 @@ void VCLXWindow::draw( sal_Int32 nX, sal_Int32 nY )
bool bOldNW =pWindow->IsNativeWidgetEnabled();
if( bOldNW )
pWindow->EnableNativeWidget(false);
- pWindow->PaintToDevice( pDev, aP, aSz );
+ pWindow->PaintToDevice( pDev, aP );
if( bOldNW )
pWindow->EnableNativeWidget();
}
diff --git a/vcl/source/window/paint.cxx b/vcl/source/window/paint.cxx
index 7a9e24a71e6f..7bd98672b5cb 100644
--- a/vcl/source/window/paint.cxx
+++ b/vcl/source/window/paint.cxx
@@ -1597,7 +1597,7 @@ void Window::ImplPaintToDevice( OutputDevice* i_pTargetOutDev, const Point& i_rP
mnDPIY = nOldDPIY;
}
-void Window::PaintToDevice( OutputDevice* pDev, const Point& rPos, const Size& /*rSize*/ )
+void Window::PaintToDevice(OutputDevice* pDev, const Point& rPos)
{
SAL_WARN_IF( pDev->HasMirroredGraphics(), "vcl.window", "PaintToDevice to mirroring graphics" );
SAL_WARN_IF( pDev->IsRTLEnabled(), "vcl.window", "PaintToDevice to mirroring device" );