mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-02 10:48:00 +02:00
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>
(cherry picked from commit c7d1319872)
This commit is contained in:
parent
2db157924b
commit
20beb2580f
1 changed files with 9 additions and 3 deletions
|
|
@ -344,24 +344,30 @@ extern _X_EXPORT RESTYPE RRCrtcType, RRModeType, RROutputType;
|
|||
{\
|
||||
int rc = dixLookupResourceByType((pointer *)&(ptr), id,\
|
||||
RROutputType, client, a);\
|
||||
if (rc != Success)\
|
||||
if (rc != Success) {\
|
||||
client->errorValue = id;\
|
||||
return (rc == BadValue) ? RRErrorBase + BadRROutput : rc;\
|
||||
}\
|
||||
}
|
||||
|
||||
#define VERIFY_RR_CRTC(id, ptr, a)\
|
||||
{\
|
||||
int rc = dixLookupResourceByType((pointer *)&(ptr), id,\
|
||||
RRCrtcType, client, a);\
|
||||
if (rc != Success)\
|
||||
if (rc != Success) {\
|
||||
client->errorValue = id;\
|
||||
return (rc == BadValue) ? RRErrorBase + BadRRCrtc : rc;\
|
||||
}\
|
||||
}
|
||||
|
||||
#define VERIFY_RR_MODE(id, ptr, a)\
|
||||
{\
|
||||
int rc = dixLookupResourceByType((pointer *)&(ptr), id,\
|
||||
RRModeType, client, a);\
|
||||
if (rc != Success)\
|
||||
if (rc != Success) {\
|
||||
client->errorValue = id;\
|
||||
return (rc == BadValue) ? RRErrorBase + BadRRMode : rc;\
|
||||
}\
|
||||
}
|
||||
|
||||
#define GetRRClient(pClient) ((RRClientPtr)dixLookupPrivate(&(pClient)->devPrivates, RRClientPrivateKey))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue