summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Packard <keithp@guitar.keithp.com>2007-03-23 01:17:58 -0700
committerKeith Packard <keithp@guitar.keithp.com>2007-03-23 01:17:58 -0700
commit26f32ef680a19e63af4b7c8c84141fe32263f298 (patch)
treedd827927db88b89338db89e3a4a55606610dc759 /src
parentf48dc501fbf74e0ac348f0b77750016597849ef4 (diff)
Property size is in units, not bytes.
Several places were using byte lengths instead of unit lengths for properties.
Diffstat (limited to 'src')
-rw-r--r--src/i830_lvds.c4
-rw-r--r--src/i830_tv.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/i830_lvds.c b/src/i830_lvds.c
index 8248510b..a05d15de 100644
--- a/src/i830_lvds.c
+++ b/src/i830_lvds.c
@@ -334,7 +334,7 @@ i830_lvds_create_resources(xf86OutputPtr output)
/* Set the current value of the backlight property */
data = pI830->backlight_duty_cycle;
err = RRChangeOutputProperty(output->randr_output, backlight_atom,
- XA_INTEGER, 32, PropModeReplace, 4, &data,
+ XA_INTEGER, 32, PropModeReplace, 1, &data,
FALSE, TRUE);
if (err != 0) {
xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
@@ -356,7 +356,7 @@ i830_lvds_set_property(xf86OutputPtr output, Atom property,
INT32 val;
if (value->type != XA_INTEGER || value->format != 32 ||
- value->size != 4)
+ value->size != 1)
{
return FALSE;
}
diff --git a/src/i830_tv.c b/src/i830_tv.c
index dc58cd6a..ac521c1c 100644
--- a/src/i830_tv.c
+++ b/src/i830_tv.c
@@ -1511,7 +1511,7 @@ i830_tv_create_resources(xf86OutputPtr output)
/* Set the current value of the tv_format property */
err = RRChangeOutputProperty(output->randr_output, margin_atoms[i],
XA_INTEGER, 32, PropModeReplace,
- 4, &dev_priv->margin[i],
+ 1, &dev_priv->margin[i],
FALSE, TRUE);
RRPostPendingProperty (output->randr_output, margin_atoms[i]);
if (err != 0) {