[PATCH] xrandr: fix brightness to prevent gamma to overflow and to allow 0
Matthias Hopf
mhopf at suse.de
Tue Jan 12 04:09:17 PST 2010
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;
> > }
> >
> > instead.
>
> 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.
Matthias
--
Matthias Hopf <mhopf at suse.de> __ __ __
Maxfeldstr. 5 / 90409 Nuernberg (_ | | (_ |__ mat at mshopf.de
Phone +49-911-74053-715 __) |_| __) |__ R & D www.mshopf.de
More information about the xorg-devel
mailing list