2 * Copyright © 1987 Sun Microsystems, Inc. All rights reserved.
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
11 * The above copyright notice and this permission notice (including the next
12 * paragraph) shall be included in all copies or substantial portions of the
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21 * DEALINGS IN THE SOFTWARE.
25 * This version of fbcmap.c is implemented in terms of mi functions.
26 * These functions used to be in fbcmap.c and depended upon the symbol
27 * XFree86Server being defined.
31 #ifdef HAVE_DIX_CONFIG_H
32 #include <dix-config.h>
40 fbListInstalledColormaps(ScreenPtr pScreen, Colormap *pmaps)
42 return miListInstalledColormaps(pScreen, pmaps);
46 fbInstallColormap(ColormapPtr pmap)
48 miInstallColormap(pmap);
52 fbUninstallColormap(ColormapPtr pmap)
54 miUninstallColormap(pmap);
58 fbResolveColor(unsigned short *pred,
59 unsigned short *pgreen,
60 unsigned short *pblue,
63 miResolveColor(pred, pgreen, pblue, pVisual);
67 fbInitializeColormap(ColormapPtr pmap)
69 return miInitializeColormap(pmap);
73 fbExpandDirectColors (ColormapPtr pmap,
78 return miExpandDirectColors(pmap, ndef, indefs, outdefs);
82 fbCreateDefColormap(ScreenPtr pScreen)
84 return miCreateDefColormap(pScreen);
88 fbClearVisualTypes(void)
94 fbSetVisualTypes (int depth, int visuals, int bitsPerRGB)
96 return miSetVisualTypes(depth, visuals, bitsPerRGB, -1);
100 fbSetVisualTypesAndMasks (int depth, int visuals, int bitsPerRGB,
101 Pixel redMask, Pixel greenMask, Pixel blueMask)
103 return miSetVisualTypesAndMasks(depth, visuals, bitsPerRGB, -1,
104 redMask, greenMask, blueMask);
108 * Given a list of formats for a screen, create a list
109 * of visuals and depths for the screen which coorespond to
110 * the set which can be used with this version of fb.
113 fbInitVisuals (VisualPtr *visualp,
118 VisualID *defaultVisp,
122 return miInitVisuals(visualp, depthp, nvisualp, ndepthp, rootDepthp,
123 defaultVisp, sizes, bitsPerRGB, -1);