1
/* $Xorg: cfbcmap.c,v 1.3 2000/08/17 19:48:13 cpqbld Exp $ */
2
/************************************************************
3
Copyright 1987 by Sun Microsystems, Inc. Mountain View, CA.
7
Permission to use, copy, modify, and distribute this
8
software and its documentation for any purpose and without
9
fee is hereby granted, provided that the above copyright no-
10
tice appear in all copies and that both that copyright no-
11
tice and this permission notice appear in supporting docu-
12
mentation, and that the names of Sun or The Open Group
13
not be used in advertising or publicity pertaining to
14
distribution of the software without specific prior
15
written permission. Sun and The Open Group make no
16
representations about the suitability of this software for
17
any purpose. It is provided "as is" without any express or
20
SUN DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
21
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FIT-
22
NESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SUN BE LI-
23
ABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
24
ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
25
PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
26
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
27
THE USE OR PERFORMANCE OF THIS SOFTWARE.
29
********************************************************/
30
/* $XFree86: xc/programs/Xserver/cfb/cfbcmap.c,v 3.12 2000/02/12 03:39:23 dawes Exp $ */
33
#ifdef HAVE_DIX_CONFIG_H
34
#include <dix-config.h>
38
#include <X11/Xproto.h>
39
#include "scrnintstr.h"
40
#include "colormapst.h"
46
cfbListInstalledColormaps(ScreenPtr pScreen, Colormap *pmaps)
48
return miListInstalledColormaps(pScreen, pmaps);
52
cfbInstallColormap(ColormapPtr pmap)
54
miInstallColormap(pmap);
58
cfbUninstallColormap(ColormapPtr pmap)
60
miUninstallColormap(pmap);
64
cfbResolveColor(unsigned short *pred,
65
unsigned short *pgreen,
66
unsigned short *pblue,
69
miResolveColor(pred, pgreen, pblue, pVisual);
73
cfbInitializeColormap(ColormapPtr pmap)
75
return miInitializeColormap(pmap);
79
cfbExpandDirectColors (ColormapPtr pmap, int ndef,
80
xColorItem *indefs, xColorItem *outdefs)
82
return miExpandDirectColors(pmap, ndef, indefs, outdefs);
86
cfbCreateDefColormap(ScreenPtr pScreen)
88
return miCreateDefColormap(pScreen);
92
cfbClearVisualTypes(void)
98
cfbSetVisualTypes (int depth, int visuals, int bitsPerRGB)
100
return miSetVisualTypes(depth, visuals, bitsPerRGB, -1);
104
* Given a list of formats for a screen, create a list
105
* of visuals and depths for the screen which coorespond to
106
* the set which can be used with this version of cfb.
110
cfbInitVisuals (VisualPtr *visualp,
115
VisualID *defaultVisp,
119
return miInitVisuals(visualp, depthp, nvisualp, ndepthp, rootDepthp,
120
defaultVisp, sizes, bitsPerRGB, -1);