summaryrefslogtreecommitdiff
path: root/vcl/unx/generic
diff options
context:
space:
mode:
authorMarcos Paulo de Souza <marcos.souza.org@gmail.com>2012-11-28 07:49:30 -0200
committerMichael Meeks <michael.meeks@suse.com>2012-11-28 12:51:08 +0000
commitee9a6d9e854db07462a372ed530da1572cb4e349 (patch)
tree149971e9b64e669915863db3da2262b54fdd37a5 /vcl/unx/generic
parent5d533bb75efde6dbe6f2d402d20cf5466135f1a4 (diff)
Remove useless method SetBackgroundBitmap
Thomas Arnhold asked me to take a look at the method SetBackgroundBitmap. In my XFCE, removing this method didn't chnage anything. So this needs more tests in Windows and other WM's. Change-Id: I3e10bea4eac114326ff981fb21ba0d292818b1da Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
Diffstat (limited to 'vcl/unx/generic')
-rw-r--r--vcl/unx/generic/window/salframe.cxx38
1 files changed, 0 insertions, 38 deletions
diff --git a/vcl/unx/generic/window/salframe.cxx b/vcl/unx/generic/window/salframe.cxx
index c68d2975c8c1..67ce56e08992 100644
--- a/vcl/unx/generic/window/salframe.cxx
+++ b/vcl/unx/generic/window/salframe.cxx
@@ -807,44 +807,6 @@ void X11SalFrame::SetExtendedFrameStyle( SalExtStyle nStyle )
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-void X11SalFrame::SetBackgroundBitmap( SalBitmap* pBitmap )
-{
- if( mhBackgroundPixmap )
- {
- XSetWindowBackgroundPixmap( GetXDisplay(), GetWindow(), None );
- XFreePixmap( GetXDisplay(), mhBackgroundPixmap );
- mhBackgroundPixmap = None;
- }
- if( pBitmap )
- {
- X11SalBitmap* pBM = static_cast<X11SalBitmap*>(pBitmap);
- Size aSize = pBM->GetSize();
- if( aSize.Width() && aSize.Height() )
- {
- mhBackgroundPixmap =
- limitXCreatePixmap( GetXDisplay(),
- GetWindow(),
- aSize.Width(),
- aSize.Height(),
- GetDisplay()->GetVisual( m_nXScreen ).GetDepth() );
- if( mhBackgroundPixmap )
- {
- SalTwoRect aTwoRect;
- aTwoRect.mnSrcX = aTwoRect.mnSrcY = aTwoRect.mnDestX = aTwoRect.mnDestY = 0;
- aTwoRect.mnSrcWidth = aTwoRect.mnDestWidth = aSize.Width();
- aTwoRect.mnSrcHeight = aTwoRect.mnDestHeight = aSize.Height();
- pBM->ImplDraw( mhBackgroundPixmap,
- m_nXScreen,
- GetDisplay()->GetVisual( m_nXScreen ).GetDepth(),
- aTwoRect, GetDisplay()->GetCopyGC( m_nXScreen ) );
- XSetWindowBackgroundPixmap( GetXDisplay(), GetWindow(), mhBackgroundPixmap );
- }
- }
- }
-}
-
-// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-
const SystemChildData* X11SalFrame::GetSystemData() const
{
X11SalFrame *pFrame = const_cast<X11SalFrame*>(this);