]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't default to using bitmap.
authorRon Lee <ron@debian.org>
Sat, 25 Jan 2003 04:26:33 +0000 (04:26 +0000)
committerRon Lee <ron@debian.org>
Sat, 25 Jan 2003 04:26:33 +0000 (04:26 +0000)
Replaced old list operators.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18916 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/cursor.h
src/msw/app.cpp

index 8b1c63a172c8b5df57b0cb0f342a007e04a6bbda..6d5c213f8a070a4ba871b767877496ee50b3df63 100644 (file)
@@ -19,7 +19,7 @@
 // compatible (even if incorrect) behaviour by default: derive wxCursor from
 // wxBitmap
 #ifndef wxICON_IS_BITMAP
-    #define wxICON_IS_BITMAP 1
+    #define wxICON_IS_BITMAP 0
 #endif
 
 #if wxICON_IS_BITMAP
index 7e26d1504f424f726f03109db06b6977e5d91f01..05cb68f704690380ba56664ec32d14f7f6b4ba4a 100644 (file)
@@ -1149,24 +1149,24 @@ bool wxApp::SendIdleEvents(wxWindow* win)
     if (event.MoreRequested())
         needMore = TRUE;
 
-    wxNode* node = win->GetChildren().First();
+    wxWindowList::Node* node = win->GetChildren().GetFirst();
     while (node)
     {
-        wxWindow* win = (wxWindow*) node->Data();
+        wxWindow* win = node->GetData();
         if (SendIdleEvents(win))
             needMore = TRUE;
 
-        node = node->Next();
+        node = node->GetNext();
     }
     return needMore;
 }
 
 void wxApp::DeletePendingObjects()
 {
-    wxNode *node = wxPendingDelete.First();
+    wxNode *node = wxPendingDelete.GetFirst();
     while (node)
     {
-        wxObject *obj = (wxObject *)node->Data();
+        wxObject *obj = node->GetData();
 
         delete obj;
 
@@ -1175,7 +1175,7 @@ void wxApp::DeletePendingObjects()
 
         // Deleting one object may have deleted other pending
         // objects, so start from beginning of list again.
-        node = wxPendingDelete.First();
+        node = wxPendingDelete.GetFirst();
     }
 }