diff options
author | marha <marha@users.sourceforge.net> | 2012-05-10 11:49:54 +0200 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2012-05-10 11:49:54 +0200 |
commit | 6231dd66fec697922b164ec03731f04542c2b30e (patch) | |
tree | 83bfa2dec8ba2d32860d513b7816dae412712fa5 /xorg-server/hw | |
parent | 58780b4306bd1254c6c0e65d255630d5c546005f (diff) | |
parent | 13a63d4f69c0692539448cb3d8e4a0e1ffdf2183 (diff) | |
download | vcxsrv-6231dd66fec697922b164ec03731f04542c2b30e.tar.gz vcxsrv-6231dd66fec697922b164ec03731f04542c2b30e.tar.bz2 vcxsrv-6231dd66fec697922b164ec03731f04542c2b30e.zip |
Merge remote-tracking branch 'origin/released'
Conflicts:
xorg-server/os/log.c
Diffstat (limited to 'xorg-server/hw')
-rw-r--r-- | xorg-server/hw/xfree86/modes/xf86RandR12.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xorg-server/hw/xfree86/modes/xf86RandR12.c b/xorg-server/hw/xfree86/modes/xf86RandR12.c index a773c34c6..aca0734e0 100644 --- a/xorg-server/hw/xfree86/modes/xf86RandR12.c +++ b/xorg-server/hw/xfree86/modes/xf86RandR12.c @@ -1679,11 +1679,11 @@ gamma_to_ramp(float gamma, CARD16 *ramp, int size) for (i = 0; i < size; i++) { if (gamma == 1.0) - ramp[i] = i << 8; + ramp[i] = i | i << 8; else ramp[i] = (CARD16) (pow((double) i / (double) (size - 1), 1. / gamma) - * (double) (size - 1) * 256); + * (double) (size - 1) * 257); } } |