Instead of TVResolution0 and TVResolution1, merge them into a single 4-value
command. This saves us from guesswork in xsetwacom where we have to figure
out what the remaining coordinates may be.

Signed-off-by: Peter Hutterer <[email protected]>
---
 tools/xsetwacom.c |   14 +++-----------
 1 files changed, 3 insertions(+), 11 deletions(-)

diff --git a/tools/xsetwacom.c b/tools/xsetwacom.c
index 4366b31..48384a1 100644
--- a/tools/xsetwacom.c
+++ b/tools/xsetwacom.c
@@ -537,20 +537,12 @@ static param_t parameters[] =
                .set_func = map_wheels,
        },
        {
-               .name = "TVResolution0",
-               .desc = "Sets MetaModes option for TwinView Screen 0. ",
+               .name = "TVResolution",
+               .desc = "Sets MetaModes option for TwinView. ",
                .prop_name = WACOM_PROP_TWINVIEW_RES,
                .prop_format = 32,
                .prop_offset = 0,
-               .prop_extra = 1,
-       },
-       {
-               .name = "TVResolution1",
-               .desc = "Sets MetaModes option for TwinView Screen 1. ",
-               .prop_name = WACOM_PROP_TWINVIEW_RES,
-               .prop_format = 32,
-               .prop_offset = 2,
-               .prop_extra = 1,
+               .prop_extra = 3,
        },
        {
                .name = "RawFilter",
-- 
1.7.2.2


------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Linuxwacom-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to