]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/samples/canvas/simple/simple.cpp
Removed rundant files, updated readme.txt.
[wxWidgets.git] / contrib / samples / canvas / simple / simple.cpp
index 6bb5b8ac3e304bb9191703f9769ff7ab07b497a2..46385b28f1e64ac08cedc6878c7b64e4a6899baf 100644 (file)
@@ -71,7 +71,7 @@ MyFrame::MyFrame( wxWindow *parent, wxWindowID id, const wxString &title,
 
     // Bunch of rects and images.
     wxBitmap bitmap( smile_xpm );
-    wxImage image( bitmap );
+    wxImage image( bitmap.ConvertToImage() );
 
     m_smile1 = new wxCanvasImage( image, 0,70,32,32 );
     root->Append( m_smile1 );