summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/scanout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scanout.c b/src/scanout.c
index ce7bfc9..a744a34 100644
--- a/src/scanout.c
+++ b/src/scanout.c
@@ -39,9 +39,9 @@ static void set_val(int *dmx, int base_addr, int attr_offset, float value, int s
dmx[pos] = (val & 0xff00) >> 8;
dmx[pos+1] = val & 0xff;
} else {
- int val = value * 255;
+ int val = value * 256;
if ( val >= 255 ) val = 255;
- dmx[pos] = value * 256;
+ dmx[pos] = val & 0xff;
}
}