randr: Fill in errorValue when verifying outputs/crtcs/modes
Signed-off-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
d85ab6b648
commit
c7d1319872
|
@ -344,24 +344,30 @@ extern _X_EXPORT RESTYPE RRCrtcType, RRModeType, RROutputType;
|
||||||
{\
|
{\
|
||||||
int rc = dixLookupResourceByType((pointer *)&(ptr), id,\
|
int rc = dixLookupResourceByType((pointer *)&(ptr), id,\
|
||||||
RROutputType, client, a);\
|
RROutputType, client, a);\
|
||||||
if (rc != Success)\
|
if (rc != Success) {\
|
||||||
|
client->errorValue = id;\
|
||||||
return (rc == BadValue) ? RRErrorBase + BadRROutput : rc;\
|
return (rc == BadValue) ? RRErrorBase + BadRROutput : rc;\
|
||||||
|
}\
|
||||||
}
|
}
|
||||||
|
|
||||||
#define VERIFY_RR_CRTC(id, ptr, a)\
|
#define VERIFY_RR_CRTC(id, ptr, a)\
|
||||||
{\
|
{\
|
||||||
int rc = dixLookupResourceByType((pointer *)&(ptr), id,\
|
int rc = dixLookupResourceByType((pointer *)&(ptr), id,\
|
||||||
RRCrtcType, client, a);\
|
RRCrtcType, client, a);\
|
||||||
if (rc != Success)\
|
if (rc != Success) {\
|
||||||
|
client->errorValue = id;\
|
||||||
return (rc == BadValue) ? RRErrorBase + BadRRCrtc : rc;\
|
return (rc == BadValue) ? RRErrorBase + BadRRCrtc : rc;\
|
||||||
|
}\
|
||||||
}
|
}
|
||||||
|
|
||||||
#define VERIFY_RR_MODE(id, ptr, a)\
|
#define VERIFY_RR_MODE(id, ptr, a)\
|
||||||
{\
|
{\
|
||||||
int rc = dixLookupResourceByType((pointer *)&(ptr), id,\
|
int rc = dixLookupResourceByType((pointer *)&(ptr), id,\
|
||||||
RRModeType, client, a);\
|
RRModeType, client, a);\
|
||||||
if (rc != Success)\
|
if (rc != Success) {\
|
||||||
|
client->errorValue = id;\
|
||||||
return (rc == BadValue) ? RRErrorBase + BadRRMode : rc;\
|
return (rc == BadValue) ? RRErrorBase + BadRRMode : rc;\
|
||||||
|
}\
|
||||||
}
|
}
|
||||||
|
|
||||||
#define GetRRClient(pClient) ((RRClientPtr)dixLookupPrivate(&(pClient)->devPrivates, RRClientPrivateKey))
|
#define GetRRClient(pClient) ((RRClientPtr)dixLookupPrivate(&(pClient)->devPrivates, RRClientPrivateKey))
|
||||||
|
|
Loading…
Reference in New Issue