]> git.saurik.com Git - wxWidgets.git/commitdiff
Added compatibility file
authorJulian Smart <julian@anthemion.co.uk>
Fri, 15 Feb 2002 11:15:22 +0000 (11:15 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Fri, 15 Feb 2002 11:15:22 +0000 (11:15 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14225 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/x11/nanox.c [new file with mode: 0644]

diff --git a/src/x11/nanox.c b/src/x11/nanox.c
new file mode 100644 (file)
index 0000000..ec9ca97
--- /dev/null
@@ -0,0 +1,28 @@
+/*
+ * nanox.c
+ *
+ * Replacements for some comomon Xlib functions
+ */
+
+#include "wx/setup.h"
+
+#if wxUSE_NANOX
+
+#include "wx/x11/nanox/X11/Xlib.h"
+
+Colormap DefaultColormapOfScreen(Screen /* screen */)
+{
+    static Colormap s_globalColormap;
+    static bool s_init = FALSE;
+
+    if (!s_init)
+    {
+        GrGetSystemPalette(& s_globalColormap);
+        s_init = TRUE;
+    }
+
+    return s_globalColormap;
+}
+
+#endif
+  /* wxUSE_NANOX */
\ No newline at end of file