From 07112adb0802d28488de5a495aa61bb3cfc280b6 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Tue, 19 Sep 2006 00:46:27 -0700 Subject: RRGetScreenResources and RRGetOutputInfo are working now. Removed separate id field in RRModeRec. Pull screen subpixel order from Render extension. Implement RGetScreenResources and RRGetOutputInfo --- randr/rrmode.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'randr/rrmode.c') 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; -- cgit v1.2.3