xrandr: get gamma and brightness
authorEric Piel <eric@triangle.(none)>
Sat, 9 Jan 2010 23:08:53 +0000 (00:08 +0100)
committerMatthias Hopf <mhopf@suse.de>
Wed, 7 Apr 2010 12:25:04 +0000 (14:25 +0200)
commit61fc9cc04e1ac179ac5e2cc4ff861bb362f0b801
treedc31f2ced075cf0da1284f090374e1b0a5867701
parentb5627bb72b3ca2c7f5a702b7134a5c6dd4f83687
xrandr: get gamma and brightness

Even in verbose query mode, gamma and brigthness were not displayed.
That's because they are not stored in the server the same way they are
specified on the command line: they are stored as 256 * 3 u16 while
the command line is 3 + 1 floats.  Still, this is useful info for the
users, and they don't care about how it's stored in the server.

So we do a regression over the values stored to recover info in the same
way as on the command line: gamma and brightness.

Signed-off-by: Éric Piel <eric.piel@tremplin-utc.net>
Reviewed-By: Matthias Hopf <mhopf@suse.de>
xrandr.c
xrandr.man