diff options
author | Jeremy Huddleston <jeremyhu@freedesktop.org> | 2008-09-05 17:05:03 -0700 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@freedesktop.org> | 2008-09-12 15:26:13 -0700 |
commit | 6548a55ebdf43231a3c48debf54aa5aa2f1aa956 (patch) | |
tree | 0f60ea8e84f6067a9193a4c4a0f5194567f552fa /miext/rootless | |
parent | bad7cd14c2021b14971b3f707f927803a053003e (diff) |
XQuartz: 256 color support
(cherry picked from commit 8dd6d5c825d457f26b41b79d02d57ed4a5ecf1f5)
Diffstat (limited to 'miext/rootless')
-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 56f81f5d5..3d338910f 100644 --- a/miext/rootless/rootlessCommon.h +++ b/miext/rootless/rootlessCommon.h @@ -273,6 +273,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 ff773ef2d..c0554f4de 100644 --- a/miext/rootless/rootlessWindow.c +++ b/miext/rootless/rootlessWindow.c @@ -448,7 +448,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); } /* |