diff options
author | Jeremy Huddleston <jeremyhu@freedesktop.org> | 2008-09-05 17:05:03 -0700 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@freedesktop.org> | 2008-09-05 17:05:03 -0700 |
commit | 8dd6d5c825d457f26b41b79d02d57ed4a5ecf1f5 (patch) | |
tree | d4be8091dcb9bd01887c448866aa93c180a53a1e /miext | |
parent | bf10fb0b1f776e72db7c76db11f764e26f9d62c4 (diff) |
XQuartz: 256 color support
Diffstat (limited to 'miext')
-rw-r--r-- | miext/rootless/rootlessCommon.h | 2 | ||||
-rw-r--r-- | miext/rootless/rootlessWindow.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/miext/rootless/rootlessCommon.h b/miext/rootless/rootlessCommon.h index 62524b96a..ce9d853d2 100644 --- a/miext/rootless/rootlessCommon.h +++ b/miext/rootless/rootlessCommon.h @@ -274,6 +274,8 @@ Bool RootlessResolveColormap (ScreenPtr pScreen, int first_color, void RootlessFlushWindowColormap (WindowPtr pWin); void RootlessFlushScreenColormaps (ScreenPtr pScreen); +RootlessColormapCallback(void *data, int first_color, int n_colors, uint32_t *colors); + // Move a window to its proper location on the screen. void RootlessRepositionWindow(WindowPtr pWin); diff --git a/miext/rootless/rootlessWindow.c b/miext/rootless/rootlessWindow.c index 080de4778..4af0d9998 100644 --- a/miext/rootless/rootlessWindow.c +++ b/miext/rootless/rootlessWindow.c @@ -452,7 +452,7 @@ RootlessInitializeFrame(WindowPtr pWin, RootlessWindowRec *winRec) Bool RootlessColormapCallback (void *data, int first_color, int n_colors, uint32_t *colors) { - return RootlessResolveColormap (data, first_color, n_colors, colors); + return (RootlessResolveColormap (data, first_color, n_colors, colors) ? XP_Success : XP_BadMatch); } /* |