summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/unx/salgdi.h7
-rw-r--r--vcl/unx/generic/gdi/salgdi2.cxx61
2 files changed, 0 insertions, 68 deletions
diff --git a/vcl/inc/unx/salgdi.h b/vcl/inc/unx/salgdi.h
index 3ffbd8701718..359d274ba79e 100644
--- a/vcl/inc/unx/salgdi.h
+++ b/vcl/inc/unx/salgdi.h
@@ -186,13 +186,6 @@ protected:
unsigned int &nDY,
int &nSrcX,
int &nSrcY ) const;
- GC SetMask ( int &nX,
- int &nY,
- unsigned int &nDX,
- unsigned int &nDY,
- int &nSrcX,
- int &nSrcY,
- Pixmap hClipMask );
using SalGraphics::DrawBitmap;
void DrawBitmap( const SalTwoRect *pPosAry,
SalGraphics *pThis,
diff --git a/vcl/unx/generic/gdi/salgdi2.cxx b/vcl/unx/generic/gdi/salgdi2.cxx
index 033055ab2006..40f35991cd68 100644
--- a/vcl/unx/generic/gdi/salgdi2.cxx
+++ b/vcl/unx/generic/gdi/salgdi2.cxx
@@ -322,67 +322,6 @@ int X11SalGraphics::Clip( int &nX,
: RectanglePart;
}
-// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-GC X11SalGraphics::SetMask( int &nX,
- int &nY,
- unsigned int &nDX,
- unsigned int &nDY,
- int &nSrcX,
- int &nSrcY,
- Pixmap hClipMask )
-{
- int n = Clip( nX, nY, nDX, nDY, nSrcX, nSrcY );
- if( RectangleOut == n )
- return NULL;
-
- Display *pDisplay = GetXDisplay();
-
- if( !pMaskGC_ )
- pMaskGC_ = CreateGC( GetDrawable() );
-
- if( RectangleIn == n )
- {
- XSetClipMask( pDisplay, pMaskGC_, hClipMask );
- XSetClipOrigin( pDisplay, pMaskGC_, nX - nSrcX, nY - nSrcY );
- return pMaskGC_;
- }
-
- // - - - - create alternate clip pixmap for region clipping - - - -
- Pixmap hPixmap = limitXCreatePixmap( pDisplay, hClipMask, nDX, nDY, 1 );
-
- if( !hPixmap )
- {
-#if (OSL_DEBUG_LEVEL > 1) || defined DBG_UTIL
- fprintf( stderr, "X11SalGraphics::SetMask !hPixmap\n" );
-#endif
- return NULL;
- }
-
- // - - - - reset pixmap; all 0 - - - - - - - - - - - - - - - - - - -
- XFillRectangle( pDisplay,
- hPixmap,
- GetDisplay()->GetMonoGC( m_nXScreen ),
- 0, 0,
- nDX, nDY );
-
- // - - - - copy pixmap only within region - - - - - - - - - - - - -
- GC pMonoGC = GetMonoGC( hPixmap );
- XSetClipOrigin( pDisplay, pMonoGC, -nX, -nY );
- XCopyArea( pDisplay,
- hClipMask, // Source
- hPixmap, // Destination
- pMonoGC,
- nSrcX, nSrcY, // Source
- nDX, nDY, // Width & Height
- 0, 0 ); // Destination
-
- XSetClipMask( pDisplay, pMaskGC_, hPixmap );
- XSetClipOrigin( pDisplay, pMaskGC_, nX, nY );
-
- XFreePixmap( pDisplay, hPixmap );
- return pMaskGC_;
-}
-
// -=-= SalGraphics =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=