[PATCH] xfree86: Add option parsing for percent options.

James Cloos cloos at jhcloos.com
Fri May 14 15:52:07 PDT 2010


>>>>> "PH" == Peter Hutterer <peter.hutterer at who-t.net> writes:

PH> One question is of course if we should allow the values to be floats
PH> instead of ints, not sure if we need something like 0.2% but I guess
PH> it might not hurt, either.

Since it is only used in a slow path, even boxen w/o hw fp should not
have problems with using floats here.  And there may be cases where a
slight change in a value will make the users much happier.

There does not seem to be any good reason to avoid floats for %age
config values.

-JimC
-- 
James Cloos <cloos at jhcloos.com>         OpenPGP: 1024D/ED7DAEA6


More information about the xorg-devel mailing list