mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-18 19:52:21 +00:00
RRGetScreenResources and RRGetOutputInfo are working now.
Removed separate id field in RRModeRec. Pull screen subpixel order from Render extension. Implement RGetScreenResources and RRGetOutputInfo
This commit is contained in:
parent
afe5e9483b
commit
07112adb08
5 changed files with 233 additions and 8 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue