[PATCH] xrandr: fix brightness to prevent gamma to overflow and to allow 0
E.A.B.Piel at tudelft.nl
Tue Jan 12 04:10:36 PST 2010
Op 12-01-10 13:09, Matthias Hopf schreef:
> On Jan 12, 10 01:45:09 +0100, Éric Piel wrote:
>> Op 11-01-10 12:46, Matthias Hopf schreef:
>>> inline double min (double x, double y)
>>> return x < y ? x : y;
>> Here is a fixed version.
> Ok, pushed modulo a warning fix. Due to -Wbad-function-cast the (CARD16)
> cast must be removed - but it is superfluous anyway.
Ah, ok. I had seen the warning, but hadn't dare removing the explicit cast.
More information about the xorg-devel