diff options
author | Caolán McNamara <caolanm@redhat.com> | 2023-01-11 10:37:41 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2023-01-12 11:49:42 +0000 |
commit | d19c1a92317a962d9ff0d682ef99284a8afe9179 (patch) | |
tree | 716595b5927bd2bf6112b9ffb35b0db2170060f0 /vcl | |
parent | 4557bd79fe323af6b192e40ba6a035fe06d6adcf (diff) |
X11SalGraphics::SetClipRegion is newly unused
Change-Id: I920294975905c3ff3f3cc3d89411b4d0349d746d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145326
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/unx/salgdi.h | 1 | ||||
-rw-r--r-- | vcl/unx/generic/gdi/salgdi.cxx | 27 |
2 files changed, 0 insertions, 28 deletions
diff --git a/vcl/inc/unx/salgdi.h b/vcl/inc/unx/salgdi.h index 99a1a3e91af6..ebe0a3c4147b 100644 --- a/vcl/inc/unx/salgdi.h +++ b/vcl/inc/unx/salgdi.h @@ -143,7 +143,6 @@ public: private: using SalGraphics::GetPixel; - void SetClipRegion( GC pGC, Region pXReg = nullptr ) const; void freeResources(); diff --git a/vcl/unx/generic/gdi/salgdi.cxx b/vcl/unx/generic/gdi/salgdi.cxx index 89e6217c0645..087bfc8eb6e2 100644 --- a/vcl/unx/generic/gdi/salgdi.cxx +++ b/vcl/unx/generic/gdi/salgdi.cxx @@ -177,33 +177,6 @@ void X11SalGraphics::DeInit() SetDrawable(None, nullptr, m_nXScreen); } -void X11SalGraphics::SetClipRegion( GC pGC, Region pXReg ) const -{ - Display *pDisplay = GetXDisplay(); - - int n = 0; - Region Regions[3]; - - if( mpClipRegion ) - Regions[n++] = mpClipRegion; - - if( pXReg && !XEmptyRegion( pXReg ) ) - Regions[n++] = pXReg; - - if( 0 == n ) - XSetClipMask( pDisplay, pGC, None ); - else if( 1 == n ) - XSetRegion( pDisplay, pGC, Regions[0] ); - else - { - Region pTmpRegion = XCreateRegion(); - XIntersectRegion( Regions[0], Regions[1], pTmpRegion ); - - XSetRegion( pDisplay, pGC, pTmpRegion ); - XDestroyRegion( pTmpRegion ); - } -} - void X11SalGraphics::GetResolution( sal_Int32 &rDPIX, sal_Int32 &rDPIY ) // const { char* pForceDpi; |