From ee9a6d9e854db07462a372ed530da1572cb4e349 Mon Sep 17 00:00:00 2001 From: Marcos Paulo de Souza Date: Wed, 28 Nov 2012 07:49:30 -0200 Subject: 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 --- vcl/unx/generic/window/salframe.cxx | 38 ------------------------------------- 1 file changed, 38 deletions(-) (limited to 'vcl/unx/generic') 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(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(this); -- cgit