treewide: replace PICT_TYPE_ARGB by PIXMAN_TYPE_ARGB

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:
Enrico Weigelt, metux IT consult
2025-08-05 19:12:02 +02:00
committed by Enrico Weigelt
parent 435de433cd
commit 900c893246
3 changed files with 5 additions and 5 deletions

View File

@@ -211,7 +211,7 @@ PictureCreateDefaultFormats(ScreenPtr pScreen, int *nformatp)
*/
if (pVisual->offsetBlue == 0 &&
pVisual->offsetGreen == b && pVisual->offsetRed == b + g) {
type = PICT_TYPE_ARGB;
type = PIXMAN_TYPE_ARGB;
}
else if (pVisual->offsetRed == 0 &&
pVisual->offsetGreen == r &&
@@ -293,7 +293,7 @@ PictureCreateDefaultFormats(ScreenPtr pScreen, int *nformatp)
format = formats[f].format;
pFormats[f].format = format;
switch (PIXMAN_FORMAT_TYPE(format)) {
case PICT_TYPE_ARGB:
case PIXMAN_TYPE_ARGB:
pFormats[f].type = PictTypeDirect;
pFormats[f].direct.alphaMask = Mask (PIXMAN_FORMAT_A(format));
@@ -649,7 +649,7 @@ PictureInit(ScreenPtr pScreen, PictFormatPtr formats, int nformats)
formats[n].direct.blueMask | formats[n].direct.greenMask) == 0)
type = PICT_TYPE_A;
else if (formats[n].direct.red > formats[n].direct.blue)
type = PICT_TYPE_ARGB;
type = PIXMAN_TYPE_ARGB;
else if (formats[n].direct.red == 0)
type = PICT_TYPE_ABGR;
else