1
/* $XFree86: xc/programs/Xserver/afb/afbcmap.c,v 3.0 1996/08/18 01:45:30 dawes Exp $ */
2
/* $XConsortium: afbcmap.c,v 4.19 94/04/17 20:28:46 dpw Exp $ */
3
/************************************************************
4
Copyright 1987 by Sun Microsystems, Inc. Mountain View, CA.
8
Permission to use, copy, modify, and distribute this
9
software and its documentation for any purpose and without
10
fee is hereby granted, provided that the above copyright no-
11
tice appear in all copies and that both that copyright no-
12
tice and this permission notice appear in supporting docu-
13
mentation, and that the names of Sun or X Consortium
14
not be used in advertising or publicity pertaining to
15
distribution of the software without specific prior
16
written permission. Sun and X Consortium make no
17
representations about the suitability of this software for
18
any purpose. It is provided "as is" without any express or
21
SUN DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
22
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FIT-
23
NESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SUN BE LI-
24
ABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
25
ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
26
PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
27
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
28
THE USE OR PERFORMANCE OF THIS SOFTWARE.
30
********************************************************/
32
#ifdef HAVE_DIX_CONFIG_H
33
#include <dix-config.h>
37
#include <X11/Xproto.h>
38
#include "scrnintstr.h"
39
#include "colormapst.h"
44
afbListInstalledColormaps(pScreen, pmaps)
48
return miListInstalledColormaps(pScreen, pmaps);
53
afbInstallColormap(pmap)
56
miInstallColormap(pmap);
60
afbUninstallColormap(pmap)
63
miUninstallColormap(pmap);
67
afbResolveColor(pred, pgreen, pblue, pVisual)
68
unsigned short *pred, *pgreen, *pblue;
69
register VisualPtr pVisual;
71
miResolveColor(pred, pgreen, pblue, pVisual);
75
afbInitializeColormap(pmap)
76
register ColormapPtr pmap;
78
return miInitializeColormap(pmap);
82
afbExpandDirectColors(pmap, ndef, indefs, outdefs)
85
xColorItem *indefs, *outdefs;
87
return miExpandDirectColors(pmap, ndef, indefs, outdefs);
91
afbCreateDefColormap(pScreen)
94
return miCreateDefColormap(pScreen);
98
afbSetVisualTypes(depth, visuals, bitsPerRGB)
103
return miSetVisualTypes(depth, visuals, bitsPerRGB, -1);
107
* Given a list of formats for a screen, create a list
108
* of visuals and depths for the screen which correspond to
109
* the set which can be used with this version of afb.
113
afbInitVisuals(visualp, depthp, nvisualp, ndepthp, rootDepthp, defaultVisp,
117
int *nvisualp, *ndepthp;
119
VisualID *defaultVisp;
123
return miInitVisuals(visualp, depthp, nvisualp, ndepthp, rootDepthp,
124
defaultVisp, sizes, bitsPerRGB, -1);