]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/fdiodispatcher.cpp
fixed SetUserScale() calls to use correct scale on Y axis
[wxWidgets.git] / src / common / fdiodispatcher.cpp
index f6a131dc01317c000a89b58a6a672e9439329c98..83573829c108adbbad34b578d165b334f9508b23 100644 (file)
@@ -49,13 +49,13 @@ wxFDIODispatcher *wxFDIODispatcher::Get()
 {
     if ( !gs_dispatcher )
     {
-#ifdef wxUSE_EPOLL_DISPATCHER
+#if wxUSE_EPOLL_DISPATCHER
         gs_dispatcher = wxEpollDispatcher::Create();
         if ( !gs_dispatcher )
 #endif // wxUSE_EPOLL_DISPATCHER
 #if wxUSE_SELECT_DISPATCHER
-            gs_dispatcher = wxSelectDispatcher::Create();
-#endif // wxUSE_WCHAR_T
+            gs_dispatcher = new wxSelectDispatcher();
+#endif // wxUSE_SELECT_DISPATCHER
     }
 
     wxASSERT_MSG( gs_dispatcher, _T("failed to create any IO dispatchers") );