mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 08:04:30 +00:00
rename remaining RT_* defines to X11_RESTYPE_*
Since we already had to rename some of them, in order to fix name clashes on win32, it's now time to rename all the remaining ones. The old ones are still present as define's to the new ones, just for backwards compatibility. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1355>
This commit is contained in:
committed by
Alan Coopersmith
parent
1ca48d0a48
commit
85d4bd0dba
@@ -422,7 +422,7 @@ PictureInitIndexedFormat(ScreenPtr pScreen, PictFormatPtr format)
|
||||
|
||||
if (format->index.vid == pScreen->rootVisual) {
|
||||
dixLookupResourceByType((void **) &format->index.pColormap,
|
||||
pScreen->defColormap, RT_COLORMAP,
|
||||
pScreen->defColormap, X11_RESTYPE_COLORMAP,
|
||||
serverClient, DixGetAttrAccess);
|
||||
}
|
||||
else {
|
||||
@@ -590,7 +590,7 @@ GetPictureBytes(void *value, XID id, ResourceSizePtr size)
|
||||
size->pixmapRefSize = 0;
|
||||
if (picture->pDrawable && (picture->pDrawable->type == DRAWABLE_PIXMAP))
|
||||
{
|
||||
SizeType pixmapSizeFunc = GetResourceTypeSizeFunc(RT_PIXMAP);
|
||||
SizeType pixmapSizeFunc = GetResourceTypeSizeFunc(X11_RESTYPE_PIXMAP);
|
||||
ResourceSizeRec pixmapSize = { 0, 0, 0 };
|
||||
PixmapPtr pixmap = (PixmapPtr)picture->pDrawable;
|
||||
pixmapSizeFunc(pixmap, pixmap->drawable.id, &pixmapSize);
|
||||
@@ -761,7 +761,7 @@ CreatePicture(Picture pid,
|
||||
|
||||
/* security creation/labeling check */
|
||||
*error = XaceHook(XACE_RESOURCE_ACCESS, client, pid, PictureType, pPicture,
|
||||
RT_PIXMAP, pDrawable, DixCreateAccess | DixSetAttrAccess);
|
||||
X11_RESTYPE_PIXMAP, pDrawable, DixCreateAccess | DixSetAttrAccess);
|
||||
if (*error != Success)
|
||||
goto out;
|
||||
|
||||
@@ -1028,7 +1028,7 @@ cpClipMask(void **result, XID id, ScreenPtr screen, ClientPtr client, Mask mode)
|
||||
id = res->info[screen->myNum].id;
|
||||
}
|
||||
#endif
|
||||
return dixLookupResourceByType(result, id, RT_PIXMAP, client, mode);
|
||||
return dixLookupResourceByType(result, id, X11_RESTYPE_PIXMAP, client, mode);
|
||||
}
|
||||
|
||||
#define NEXT_VAL(_type) (vlist ? (_type) *vlist++ : (_type) ulist++->val)
|
||||
|
||||
Reference in New Issue
Block a user