• 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

Revision5eeaaec9ba4b0f26fc8e08ab2f8efddee67d0167 (tree)
Time2014-02-13 17:33:19
AuthorChristian Gmeiner <christian.gmeiner@gmai...>
CommiterChristian Gmeiner

Log Message

evdev: xinput_do_set_int_prop(..) does return a bool

Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>

Change Summary

Incremental Difference

--- a/src/calibrator/Evdev.cpp
+++ b/src/calibrator/Evdev.cpp
@@ -336,7 +336,7 @@ bool CalibratorEvdev::set_invert_xy(const int invert_x, const int invert_y)
336336 arr_cmd[0] = invert_x;
337337 arr_cmd[1] = invert_y;
338338
339- int ret = xinput_do_set_int_prop("Evdev Axis Inversion", display, 8, 2, arr_cmd);
339+ bool ret = xinput_do_set_int_prop("Evdev Axis Inversion", display, 8, 2, arr_cmd);
340340
341341 if (verbose) {
342342 if (ret == true)
@@ -359,7 +359,7 @@ bool CalibratorEvdev::set_calibration(const XYinfo new_axys)
359359 arr_cmd[2] = new_axys.y.min;
360360 arr_cmd[3] = new_axys.y.max;
361361
362- int ret = xinput_do_set_int_prop("Evdev Axis Calibration", display, 32, 4, arr_cmd);
362+ bool ret = xinput_do_set_int_prop("Evdev Axis Calibration", display, 32, 4, arr_cmd);
363363
364364 if (verbose) {
365365 if (ret == true)