mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
treewide: replace PICT_TYPE_COLOR by PIXMAN_TYPE_COLOR
Try not to use old compat macros anymore, use the real ones instead. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
9f4391203f
commit
d8a06a2f9f
@@ -230,7 +230,7 @@ PictureCreateDefaultFormats(ScreenPtr pScreen, int *nformatp)
|
||||
break;
|
||||
case StaticColor:
|
||||
case PseudoColor:
|
||||
format = PICT_VISFORMAT(bpp, PICT_TYPE_COLOR, v);
|
||||
format = PICT_VISFORMAT(bpp, PIXMAN_TYPE_COLOR, v);
|
||||
addFormat(formats, &nformats, format, depth);
|
||||
break;
|
||||
case StaticGray:
|
||||
@@ -375,7 +375,7 @@ PictureCreateDefaultFormats(ScreenPtr pScreen, int *nformatp)
|
||||
/* remaining fields already set to zero */
|
||||
break;
|
||||
|
||||
case PICT_TYPE_COLOR:
|
||||
case PIXMAN_TYPE_COLOR:
|
||||
case PICT_TYPE_GRAY:
|
||||
pFormats[f].type = PictTypeIndexed;
|
||||
pFormats[f].index.vid =
|
||||
@@ -639,7 +639,7 @@ PictureInit(ScreenPtr pScreen, PictFormatPtr formats, int nformats)
|
||||
VisualPtr pVisual =
|
||||
PictureFindVisual(pScreen, formats[n].index.vid);
|
||||
if ((pVisual->class | DynamicClass) == PseudoColor)
|
||||
type = PICT_TYPE_COLOR;
|
||||
type = PIXMAN_TYPE_COLOR;
|
||||
else
|
||||
type = PICT_TYPE_GRAY;
|
||||
a = r = g = b = 0;
|
||||
|
||||
Reference in New Issue
Block a user