]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/dragimag/dragimag.cpp
Don't set a normal cursor for the frame, set the NULL cursor, else
[wxWidgets.git] / samples / dragimag / dragimag.cpp
index 13a4f500855a8ad0350ffe138cbc821d16b2b050..aa00bf12f3f98a92b985f073e370a1510dad5f3f 100644 (file)
@@ -382,7 +382,7 @@ bool MyApp::OnInit()
     wxImage image;
     if (image.LoadFile("backgrnd.png", wxBITMAP_TYPE_PNG))
     {
-        m_background = image.ConvertToBitmap();
+        m_background = wxBitmap(image);
     }
 
     MyFrame *frame = new MyFrame();
@@ -399,7 +399,7 @@ bool MyApp::OnInit()
        the first file over the second file. */
         if (image.LoadFile(filename, wxBITMAP_TYPE_PNG))
         {
-            DragShape* newShape = new DragShape(image.ConvertToBitmap());
+            DragShape* newShape = new DragShape(wxBitmap(image));
             newShape->SetPosition(wxPoint(i*50, i*50));
 
             if (i == 2)