@@ -866,7 +866,7 @@ void gbtEfgDisplay::OnMouseMotion(wxMouseEvent &p_event)
866866 // Copy subtree
867867 wxBitmap bitmap (tree_xpm);
868868#if defined(__WXMSW__) or defined(__WXMAC__)
869- wxImage image = bitmap.ConvertToImage ();
869+ const auto image = wxCursor ( bitmap.ConvertToImage () );
870870#else
871871 wxIcon image;
872872 image.CopyFromBitmap (bitmap);
@@ -881,7 +881,7 @@ void gbtEfgDisplay::OnMouseMotion(wxMouseEvent &p_event)
881881 // This should be the pawn icon!
882882 wxBitmap bitmap (move_xpm);
883883#if defined(__WXMSW__) or defined(__WXMAC__)
884- wxImage image = bitmap.ConvertToImage ();
884+ const auto image = wxCursor ( bitmap.ConvertToImage () );
885885#else
886886 wxIcon image;
887887 image.CopyFromBitmap (bitmap);
@@ -896,7 +896,7 @@ void gbtEfgDisplay::OnMouseMotion(wxMouseEvent &p_event)
896896 // Move subtree
897897 wxBitmap bitmap (tree_xpm);
898898#if defined(__WXMSW__) or defined(__WXMAC__)
899- wxImage image = bitmap.ConvertToImage ();
899+ const auto image = wxCursor ( bitmap.ConvertToImage () );
900900#else
901901 wxIcon image;
902902 image.CopyFromBitmap (bitmap);
@@ -915,7 +915,7 @@ void gbtEfgDisplay::OnMouseMotion(wxMouseEvent &p_event)
915915 if (node && node->GetOutcome ()) {
916916 wxBitmap bitmap = MakeOutcomeBitmap ();
917917#if defined(__WXMSW__) or defined(__WXMAC__)
918- wxImage image = bitmap.ConvertToImage ();
918+ const auto image = wxCursor ( bitmap.ConvertToImage () );
919919#else
920920 wxIcon image;
921921 image.CopyFromBitmap (bitmap);
0 commit comments