mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
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:
committed by
Enrico Weigelt
parent
435de433cd
commit
900c893246
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user