From 5ed738a766bb06539893bd424759e75926c43e15 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Fri, 15 Feb 2002 11:15:22 +0000 Subject: [PATCH] Added compatibility file git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14225 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/x11/nanox.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/x11/nanox.c diff --git a/src/x11/nanox.c b/src/x11/nanox.c new file mode 100644 index 0000000000..ec9ca97b32 --- /dev/null +++ b/src/x11/nanox.c @@ -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