diff options
author | Keith Packard <keithp@guitar.keithp.com> | 2006-09-19 00:46:27 -0700 |
---|---|---|
committer | Keith Packard <keithp@guitar.keithp.com> | 2006-09-19 00:46:27 -0700 |
commit | 07112adb0802d28488de5a495aa61bb3cfc280b6 (patch) | |
tree | c181059f543a98c5f34becc171da8deae9485166 /randr/rrmode.c | |
parent | afe5e9483b352ed06075ed68a6ffa50799194e2d (diff) |
RRGetScreenResources and RRGetOutputInfo are working now.
Removed separate id field in RRModeRec.
Pull screen subpixel order from Render extension.
Implement RGetScreenResources and RRGetOutputInfo
Diffstat (limited to 'randr/rrmode.c')
-rw-r--r-- | randr/rrmode.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/randr/rrmode.c b/randr/rrmode.c index 52585d967..4e44e7d82 100644 --- a/randr/rrmode.c +++ b/randr/rrmode.c @@ -37,6 +37,7 @@ RRModeGet (ScreenPtr pScreen, for (i = 0; i < pScrPriv->numModes; i++) { mode = pScrPriv->modes[i]; + modeInfo->id = mode->mode.id; if (!memcmp (modeInfo, &mode->mode, sizeof (xRRModeInfo)) && !memcmp (name, mode->name, modeInfo->nameLength)) { @@ -66,8 +67,8 @@ RRModeGet (ScreenPtr pScreen, return NULL; } - mode->id = FakeClientID(0); - if (!AddResource (mode->id, RRModeType, (pointer) mode)) + mode->mode.id = FakeClientID(0); + if (!AddResource (mode->mode.id, RRModeType, (pointer) mode)) return NULL; ++mode->refcnt; pScrPriv->modes = modes; |