Implement bitmap mask copying in wxX11.

Copy the mask pixmap properly in wxX11, otherwise copying masks resulted in
freeing the same pixmap twice and an X error.

This fixes the bitmap unit test for wxX11.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66097 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2010-11-10 13:53:08 +00:00
parent 5f480c0bf1
commit 04a8da5f57
2 changed files with 26 additions and 0 deletions

View File

@@ -34,6 +34,7 @@ class WXDLLIMPEXP_CORE wxMask: public wxObject
{
public:
wxMask();
wxMask(const wxMask& mask);
wxMask( const wxBitmap& bitmap, const wxColour& colour );
wxMask( const wxBitmap& bitmap, int paletteIndex );
wxMask( const wxBitmap& bitmap );
@@ -53,6 +54,7 @@ public:
private:
WXPixmap m_bitmap;
WXDisplay *m_display;
wxSize m_size;
private:
DECLARE_DYNAMIC_CLASS(wxMask)