diff options
author | Dave Airlie <airlied@redhat.com> | 2010-06-10 20:13:58 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-06-11 10:11:16 +1000 |
commit | b6346ede94f0d0b11ee04770cf52508cb0a5e6c6 (patch) | |
tree | 622bf8fe882b62c7f30370274d24705dd20580c2 /src | |
parent | 1971dc6d758dea13b9fb6d1c8f516c165628b5e5 (diff) |
drmmode: fix big endian issue with properties.
On a power machine with an rn50, this was causing load detection to be turned off after the first X run, subsequent X runs would find nothing connected.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/drmmode_display.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c index 686de5e8..c427bf10 100644 --- a/src/drmmode_display.c +++ b/src/drmmode_display.c @@ -722,6 +722,7 @@ drmmode_output_create_resources(xf86OutputPtr output) if (drmmode_prop->flags & DRM_MODE_PROP_RANGE) { INT32 range[2]; + INT32 value = p->value; p->num_atoms = 1; p->atoms = xcalloc(p->num_atoms, sizeof(Atom)); @@ -739,7 +740,7 @@ drmmode_output_create_resources(xf86OutputPtr output) "RRConfigureOutputProperty error, %d\n", err); } err = RRChangeOutputProperty(output->randr_output, p->atoms[0], - XA_INTEGER, 32, PropModeReplace, 1, &p->value, FALSE, TRUE); + XA_INTEGER, 32, PropModeReplace, 1, &value, FALSE, TRUE); if (err != 0) { xf86DrvMsg(output->scrn->scrnIndex, X_ERROR, "RRChangeOutputProperty error, %d\n", err); |