From 78d93bf65a28b61e1c9ffb02613c2d0e44da631a Mon Sep 17 00:00:00 2001 From: =?utf8?q?W=C5=82odzimierz=20Skiba?= Date: Tue, 8 Feb 2005 21:00:40 +0000 Subject: [PATCH 1/1] Use wxICON as portable feature. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31865 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/dragimag/dragimag.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/samples/dragimag/dragimag.cpp b/samples/dragimag/dragimag.cpp index 974ffe9339..8b5be97a0f 100644 --- a/samples/dragimag/dragimag.cpp +++ b/samples/dragimag/dragimag.cpp @@ -188,15 +188,7 @@ void MyCanvas::OnMouseEvent(wxMouseEvent& event) } case SHAPE_DRAG_ICON: { - // Can anyone explain why this test is necessary, - // to prevent a gcc error? -#if defined(__WXMOTIF__) || defined(__WXX11__) - wxIcon icon(dragicon_xpm); -#else - wxIcon icon(wxICON(dragicon)); -#endif - - m_dragImage = new wxDragImage(icon, wxCursor(wxCURSOR_HAND)); + m_dragImage = new wxDragImage(wxICON(dragicon), wxCursor(wxCURSOR_HAND)); break; } } -- 2.47.2