A generic touchscreen calibration program for X.Org
修订版 | 5eeaaec9ba4b0f26fc8e08ab2f8efddee67d0167 (tree) |
---|---|
时间 | 2014-02-13 17:33:19 |
作者 | Christian Gmeiner <christian.gmeiner@gmai...> |
Commiter | Christian Gmeiner |
evdev: xinput_do_set_int_prop(..) does return a bool
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
@@ -336,7 +336,7 @@ bool CalibratorEvdev::set_invert_xy(const int invert_x, const int invert_y) | ||
336 | 336 | arr_cmd[0] = invert_x; |
337 | 337 | arr_cmd[1] = invert_y; |
338 | 338 | |
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); | |
340 | 340 | |
341 | 341 | if (verbose) { |
342 | 342 | if (ret == true) |
@@ -359,7 +359,7 @@ bool CalibratorEvdev::set_calibration(const XYinfo new_axys) | ||
359 | 359 | arr_cmd[2] = new_axys.y.min; |
360 | 360 | arr_cmd[3] = new_axys.y.max; |
361 | 361 | |
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); | |
363 | 363 | |
364 | 364 | if (verbose) { |
365 | 365 | if (ret == true) |