drop ScopedPic

This commit is contained in:
Caolán McNamara 2011-11-13 14:15:02 +00:00
parent 4faf8c24ec
commit 4ef21de513
2 changed files with 0 additions and 37 deletions

View file

@ -894,7 +894,6 @@ bool X11SalGraphics::drawAlphaBitmap( const SalTwoRect& rTR,
rTR.mnSrcX, rTR.mnSrcY, 0, 0, rTR.mnSrcX, rTR.mnSrcY, 0, 0,
rTR.mnDestX, rTR.mnDestY, rTR.mnDestWidth, rTR.mnDestHeight ); rTR.mnDestX, rTR.mnDestY, rTR.mnDestWidth, rTR.mnDestHeight );
// TODO: used ScopedPic
rPeer.FreePicture( aAlphaPic ); rPeer.FreePicture( aAlphaPic );
XFreePixmap(pXDisplay, aAlphaPM); XFreePixmap(pXDisplay, aAlphaPM);
rPeer.FreePicture( aSrcPic ); rPeer.FreePicture( aSrcPic );

View file

@ -85,24 +85,6 @@ public:
//===================================================================== //=====================================================================
class ScopedPic
{
public:
ScopedPic( XRenderPeer& rPeer, Picture& rPic );
~ScopedPic();
Picture& Get();
private:
XRenderPeer& mrRenderPeer;
Picture maPicture;
private: // prevent copy and assignmet
ScopedPic( const ScopedPic& );
void operator=( const ScopedPic& );
};
//=====================================================================
inline XRenderPictFormat* XRenderPeer::GetStandardFormatA8() const inline XRenderPictFormat* XRenderPeer::GetStandardFormatA8() const
{ {
return mpStandardFormatA8; return mpStandardFormatA8;
@ -216,24 +198,6 @@ inline void XRenderPeer::AddTraps( Picture aDst, int nXOfs, int nYOfs,
//===================================================================== //=====================================================================
inline ScopedPic::ScopedPic( XRenderPeer& rPeer, Picture& rPic )
: mrRenderPeer( rPeer)
, maPicture( rPic )
{}
inline ScopedPic::~ScopedPic()
{
if( maPicture )
mrRenderPeer.FreePicture( maPicture );
}
inline Picture& ScopedPic::Get()
{
return maPicture;
}
//=====================================================================
inline XRenderColor GetXRenderColor( const SalColor& rSalColor, double fTransparency = 0.0 ) inline XRenderColor GetXRenderColor( const SalColor& rSalColor, double fTransparency = 0.0 )
{ {
XRenderColor aRetVal; XRenderColor aRetVal;