Added compatibility file

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14225 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2002-02-15 11:15:22 +00:00
parent 256d631aaf
commit 5ed738a766

28
src/x11/nanox.c Normal file
View File

@ -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 */