From 370fa28a6afd70ec91411edf1413c0e448ae45b6 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Thu, 30 Nov 2006 21:56:59 -0800 Subject: Add initial implementation of crtc gamma and mode adding requests. They build. More testing seems indicated. --- src/XrrProperty.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/XrrProperty.c') diff --git a/src/XrrProperty.c b/src/XrrProperty.c index 3b16491..5367e1e 100644 --- a/src/XrrProperty.c +++ b/src/XrrProperty.c @@ -58,9 +58,9 @@ XRRListOutputProperties (Display *dpy, RROutput output, int *nprop) return NULL; } - if (rep.nProperties) { - nbytes = rep.nProperties * sizeof (Atom); - netbytes = rep.nProperties << 2; + if (rep.nAtoms) { + nbytes = rep.nAtoms * sizeof (Atom); + netbytes = rep.nAtoms << 2; props = (Atom *) Xmalloc (nbytes); if (props == NULL) { @@ -74,7 +74,7 @@ XRRListOutputProperties (Display *dpy, RROutput output, int *nprop) _XRead32 (dpy, props, nbytes); } - *nprop = rep.nProperties; + *nprop = rep.nAtoms; UnlockDisplay (dpy); SyncHandle (); return props; @@ -98,6 +98,7 @@ XRRQueryOutputProperty (Display *dpy, RROutput output, Atom property) req->reqType = info->codes->major_opcode; req->randrReqType = X_RRQueryOutputProperty; req->output = output; + req->property = property; if (!_XReply (dpy, (xReply *) &rep, 0, xFalse)) { UnlockDisplay (dpy); -- cgit v1.2.3