summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Packard <keithp@neko.keithp.com>2006-10-04 20:04:09 -0700
committerKeith Packard <keithp@neko.keithp.com>2006-10-04 20:04:09 -0700
commitab4207db14d70384f017cc2a22379d7c358b60e0 (patch)
treec74a28ced4cb1617ba052fa3a3ae3af4210e23b0 /src
parentdd0fb435a0168d4041ecd81024d6493295651c61 (diff)
Remove mode origins. Add preferred mode count.
Diffstat (limited to 'src')
-rw-r--r--src/XrrOutput.c1
-rw-r--r--src/XrrScreen.c1
2 files changed, 1 insertions, 1 deletions
diff --git a/src/XrrOutput.c b/src/XrrOutput.c
index 872a83a..8ae3efa 100644
--- a/src/XrrOutput.c
+++ b/src/XrrOutput.c
@@ -97,6 +97,7 @@ XRRGetOutputInfo (Display *dpy, XRRScreenResources *resources, RROutput output)
xoi->ncrtc = rep.nCrtcs;
xoi->crtcs = (RRCrtc *) (xoi + 1);
xoi->nmode = rep.nModes;
+ xoi->npreferred = rep.nPreferred;
xoi->modes = (RRMode *) (xoi->crtcs + rep.nCrtcs);
xoi->nclone = rep.nClones;
xoi->clones = (RROutput *) (xoi->modes + rep.nModes);
diff --git a/src/XrrScreen.c b/src/XrrScreen.c
index 37e3aed..1b79c8f 100644
--- a/src/XrrScreen.c
+++ b/src/XrrScreen.c
@@ -162,7 +162,6 @@ XRRGetScreenResources (Display *dpy, Window window)
xrsr->modes[i].vTotal = modeInfo.vTotal;
xrsr->modes[i].nameLength = modeInfo.nameLength;
xrsr->modes[i].modeFlags = modeInfo.modeFlags;
- xrsr->modes[i].origin = modeInfo.origin;
}
/*