xrandr: Changes to 'master'

Matthias Hopf mhopf at kemper.freedesktop.org
Wed Apr 7 05:25:45 PDT 2010


 xrandr.c   |  117 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++-----
 xrandr.man |   10 +++--
 2 files changed, 115 insertions(+), 12 deletions(-)

New commits:
commit 61fc9cc04e1ac179ac5e2cc4ff861bb362f0b801
Author: Eric Piel <eric at triangle.(none)>
Date:   Sun Jan 10 00:08:53 2010 +0100

    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 at tremplin-utc.net>
    Reviewed-By: Matthias Hopf <mhopf at suse.de>

commit b5627bb72b3ca2c7f5a702b7134a5c6dd4f83687
Author: Eric Piel <eric at triangle.(none)>
Date:   Sun Jan 10 00:08:53 2010 +0100

    xrandr: fix maximum gamma set
    
    Gamma is an array of 3 16-bit values. Currently, the maximum value assigned is
    255*256, which is only 65280. Make sure that when we set the gamma, the maximum
    value is 65535. It's slightly brighter but also helps to avoid kludges to
    detect clamped values when reading back the gamma.
    
    Signed-off-by: Éric Piel <eric.piel at tremplin-utc.net>
    Reviewed-by: Matthias Hopf <mhopf at suse.de>



More information about the xorg-commit mailing list