• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

A generic touchscreen calibration program for X.Org


Commit MetaInfo

Revision41e0d3ab1f0c91f1297c817c63c400bbf6b8f365 (tree)
Time2012-06-27 06:19:26
AuthorTias Guns <tias@ulys...>
CommiterTias Guns

Log Message

remove invertX/Y from evdev config outputting

invertX/Y is automatically handled by xf86ScaleAxis
avoid outputting it so users don't manually change it
(it is still set/unset in dynamic calibration when needed though)

Change Summary

Incremental Difference

--- a/src/calibrator/Evdev.cpp
+++ b/src/calibrator/Evdev.cpp
@@ -574,8 +574,6 @@ bool CalibratorEvdev::output_xorgconfd(const XYinfo new_axys)
574574 printf(" Option \"Calibration\" \"%d %d %d %d\"\n",
575575 new_axys.x.min, new_axys.x.max, new_axys.y.min, new_axys.y.max);
576576 printf(" Option \"SwapAxes\" \"%d\"\n", new_axys.swap_xy);
577- printf(" Option \"InvertX\" \"%d\"\n", new_axys.x.invert);
578- printf(" Option \"InvertY\" \"%d\"\n", new_axys.y.invert);
579577 printf("EndSection\n");
580578
581579 if (not_sysfs_name)
@@ -597,8 +595,6 @@ bool CalibratorEvdev::output_hal(const XYinfo new_axys)
597595 <merge key=\"input.x11_options.calibration\" type=\"string\">%d %d %d %d</merge>\n"
598596 , sysfs_name, new_axys.x.min, new_axys.x.max, new_axys.y.min, new_axys.y.max);
599597 printf(" <merge key=\"input.x11_options.swapaxes\" type=\"string\">%d</merge>\n", new_axys.swap_xy);
600- printf(" <merge key=\"input.x11_options.invertx\" type=\"string\">%d</merge>\n", new_axys.x.invert);
601- printf(" <merge key=\"input.x11_options.inverty\" type=\"string\">%d</merge>\n", new_axys.y.invert);
602598 printf("</match>\n");
603599
604600 if (not_sysfs_name)
@@ -613,7 +609,6 @@ bool CalibratorEvdev::output_xinput(const XYinfo new_axys)
613609 printf(" Install the 'xinput' tool and copy the command(s) below in a script that starts with your X session\n");
614610 printf(" xinput set-int-prop \"%s\" \"Evdev Axis Calibration\" 32 %d %d %d %d\n", device_name, new_axys.x.min, new_axys.x.max, new_axys.y.min, new_axys.y.max);
615611 printf(" xinput set-int-prop \"%s\" \"Evdev Axes Swap\" 8 %d\n", device_name, new_axys.swap_xy);
616- printf(" xinput set-int-prop \"%s\" \"Evdev Axis Inversion\" %d %d\n", device_name, new_axys.x.invert, new_axys.y.invert);
617612
618613 return true;
619614 }