[PATCH 2/3] xrandr: fix gamma == 1.0 && sigbits != 8

2012-08-24 Thread Andy Ritger
The gamma-correction lookup table managed through XRR[GS]etCrtcGamma is 2^n in size, where 'n' is the number of significant bits in the X Color. Each element in the gamma-correction lookup table is a 16:16:16 X Color (i.e., in the range [0,65536) ). The significant bits of each component of each e

Re: [PATCH 2/3] xrandr: fix gamma == 1.0 && sigbits != 8

2012-08-15 Thread Andy Ritger
On Wed, Aug 15, 2012 at 09:36:58AM -0700, Yang Zhao wrote: > On 13 August 2012 16:25, Andy Ritger wrote: > > The gamma-correction lookup table managed through XRR[GS]etCrtcGamma is > > 2^n in size, where 'n' is the number of significant bits in the X Color. > > ... > > xrandr.c | 15 +++

Re: [PATCH 2/3] xrandr: fix gamma == 1.0 && sigbits != 8

2012-08-15 Thread Andy Ritger
On Wed, Aug 15, 2012 at 08:55:40AM -0700, walter harms wrote: > > > Am 14.08.2012 01:25, schrieb Andy Ritger: > > The gamma-correction lookup table managed through XRR[GS]etCrtcGamma is > > 2^n in size, where 'n' is the number of significant bits in the X Color. > > Each element in the gamma-corr

Re: [PATCH 2/3] xrandr: fix gamma == 1.0 && sigbits != 8

2012-08-15 Thread Yang Zhao
On 13 August 2012 16:25, Andy Ritger wrote: > The gamma-correction lookup table managed through XRR[GS]etCrtcGamma is > 2^n in size, where 'n' is the number of significant bits in the X Color. > ... > xrandr.c | 15 +++ > 1 files changed, 11 insertions(+), 4 deletions(-) > > diff --

Re: [PATCH 2/3] xrandr: fix gamma == 1.0 && sigbits != 8

2012-08-15 Thread walter harms
Am 14.08.2012 01:25, schrieb Andy Ritger: > The gamma-correction lookup table managed through XRR[GS]etCrtcGamma is > 2^n in size, where 'n' is the number of significant bits in the X Color. > Each element in the gamma-correction lookup table is a 16:16:16 X Color > (i.e., in the range [0,65536)

[PATCH 2/3] xrandr: fix gamma == 1.0 && sigbits != 8

2012-08-13 Thread Andy Ritger
The gamma-correction lookup table managed through XRR[GS]etCrtcGamma is 2^n in size, where 'n' is the number of significant bits in the X Color. Each element in the gamma-correction lookup table is a 16:16:16 X Color (i.e., in the range [0,65536) ). The significant bits of each component of each e