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:
parent
256d631aaf
commit
5ed738a766
28
src/x11/nanox.c
Normal file
28
src/x11/nanox.c
Normal 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 */
|
Loading…
Reference in New Issue
Block a user