[PATCH] xrandr: fix brightness to prevent gamma to overflow and to allow 0
Éric Piel
E.A.B.Piel at tudelft.nl
Mon Jan 11 04:47:00 PST 2010
Op 11-01-10 12:46, Matthias Hopf schreef:
> On Jan 10, 10 00:25:34 +0100, Eric Piel wrote:
>> This fix the behaviour of brightness for 0 and values above 1. You can
>> still can funky display with negative values so all is safe ;-)
>
> Nice, but fmin() is unknown unless compiled as c99 source (which we
> probably want to avoid).
> I would suggest using
>
> static inline double min (double x, double y)
> {
> return x < y ? x : y;
> }
>
> instead.
Ah, surprisingly on my machine the compiler didn't complain. I'll resend
with this.
Eric
More information about the xorg-devel
mailing list