diff options
author | Jamey Sharp <jamey@minilop.net> | 2010-04-24 23:56:36 -0700 |
---|---|---|
committer | Jamey Sharp <jamey@minilop.net> | 2010-05-19 12:32:48 -0700 |
commit | c38552d115e3bc71ad6179a8ad0d68778e943793 (patch) | |
tree | af6a02d6e34896c2a91b49ba568dab6bbad8b7d8 /randr/rrcrtc.c | |
parent | e291c561821ae86b7dd74269d5cd29bc31703962 (diff) |
Add typed resource-lookup errors for non-core resource types.
Signed-off-by: Jamey Sharp <jamey@minilop.net>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'randr/rrcrtc.c')
-rw-r--r-- | randr/rrcrtc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/randr/rrcrtc.c b/randr/rrcrtc.c index 95e74c5d8..987f77233 100644 --- a/randr/rrcrtc.c +++ b/randr/rrcrtc.c @@ -634,6 +634,7 @@ RRCrtcInit (void) RRCrtcType = CreateNewResourceType (RRCrtcDestroyResource, "CRTC"); if (!RRCrtcType) return FALSE; + SetResourceTypeErrorValue(RRCrtcType, RRErrorBase + BadRRCrtc); return TRUE; } @@ -806,7 +807,7 @@ ProcRRSetCrtcConfig (ClientPtr client) { if (outputs) free(outputs); - return (rc == BadValue) ? RRErrorBase + BadRROutput : rc; + return rc; } /* validate crtc for this output */ for (j = 0; j < outputs[i]->numCrtcs; j++) |