don't use deprecated wxImage methods inside wxWin
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14751 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -222,11 +222,9 @@ bool wxDragImage::Create(const wxString& str, const wxCursor& cursor)
|
||||
dc2.SelectObject(wxNullBitmap);
|
||||
|
||||
// Make the bitmap masked
|
||||
wxImage image(bitmap);
|
||||
wxImage image = bitmap.ConvertToImage();
|
||||
image.SetMaskColour(255, 255, 255);
|
||||
bitmap = image.ConvertToBitmap();
|
||||
|
||||
return Create(bitmap, cursor);
|
||||
return Create(wxBitmap(image), cursor);
|
||||
}
|
||||
|
||||
// Create a drag image for the given tree control item
|
||||
|
||||
Reference in New Issue
Block a user