diff options
author | David Airlie <airlied@linux.ie> | 2007-02-02 14:26:19 +1100 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2007-02-02 15:34:25 +1100 |
commit | 96acf6b2b242454345cc4b9cfc7ca07e0b597b43 (patch) | |
tree | 33fe6b407c5337ad2f08eaf3c1a43c864f3c98f2 | |
parent | 76bc53f9b153880730ab61dcd2b6e4e7717e4058 (diff) |
bring over setproperty from intel code
-rw-r--r-- | src/radeon_randr.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/radeon_randr.c b/src/radeon_randr.c index 23e4dad5..925a01fd 100644 --- a/src/radeon_randr.c +++ b/src/radeon_randr.c @@ -683,6 +683,23 @@ xf86RandR12CrtcSetGamma (ScreenPtr pScreen, return TRUE; } +static Bool +xf86RandR12OutputSetProperty (ScreenPtr pScreen, + RROutputPtr randr_output, + Atom property, + RRPropertyValuePtr value) +{ + xf86OutputPtr output = randr_output->devPrivate; + + /* If we don't have any property handler, then we don't care what the + * user is setting properties to. + */ + if (output->funcs->set_property == NULL) + return TRUE; + + return output->funcs->set_property(output, property, value); +} + /** * Given a list of xf86 modes and a RandR Output object, construct * RandR modes and assign them to the output @@ -908,6 +925,7 @@ xf86RandR12Init12 (ScreenPtr pScreen) rp->rrScreenSetSize = xf86RandR12ScreenSetSize; rp->rrCrtcSet = xf86RandR12CrtcSet; rp->rrCrtcSetGamma = xf86RandR12CrtcSetGamma; + rp->rrOutputSetProperty = xf86RandR12OutputSetProperty; rp->rrSetConfig = NULL; pScrn->PointerMoved = xf86RandR12PointerMoved; if (!xf86RandR12CreateObjects12 (pScreen)) |