]> git.saurik.com Git - wxWidgets.git/blobdiff - src/x11/cursor.cpp
added library target to regen only lib makefiles
[wxWidgets.git] / src / x11 / cursor.cpp
index 55847bb23e3feba14d77a604c1a398216581a579..7722a56fb9bac2a34cf7eb45f8545c200fee48b3 100644 (file)
 #include "wx/utils.h"
 
 #include "wx/x11/private.h"
+
+#if !wxUSE_NANOX
 #include <X11/cursorfont.h>
+#endif
 
 //-----------------------------------------------------------------------------
 // wxCursor
@@ -64,6 +67,13 @@ wxCursor::wxCursor( int cursorId )
 {
     m_refData = new wxCursorRefData();
 
+#if wxUSE_NANOX
+    // TODO Create some standard cursors from bitmaps.
+    
+    
+#else
+    // !wxUSE_NANOX
+    
     M_CURSORDATA->m_display = wxGlobalDisplay();
     wxASSERT_MSG( M_CURSORDATA->m_display, wxT("No display") );
     
@@ -108,6 +118,7 @@ wxCursor::wxCursor( int cursorId )
     }
 
     M_CURSORDATA->m_cursor = (WXCursor) XCreateFontCursor( (Display*) M_CURSORDATA->m_display, x_cur );
+#endif
 }
 
 wxCursor::wxCursor(const char bits[], int width, int  height,
@@ -192,7 +203,7 @@ void wxEndBusyCursor()
     gs_savedCursor = wxNullCursor;
 
     if (wxTheApp)
-        wxTheApp->SendIdleEvents();
+        wxTheApp->ProcessIdle();
 }
 
 void wxBeginBusyCursor( wxCursor *WXUNUSED(cursor) )
@@ -208,7 +219,7 @@ void wxBeginBusyCursor( wxCursor *WXUNUSED(cursor) )
     wxSetCursor( wxCursor(wxCURSOR_WATCH) );
 
     if (wxTheApp)
-        wxTheApp->SendIdleEvents();
+        wxTheApp->ProcessIdle();
 }
 
 bool wxIsBusy()