OSDN Git Service

Faciliates usage in a different resolution from when it was calibrated.
authorChris Larson <clarson@kergoth.com>
Fri, 22 May 2009 16:32:41 +0000 (16:32 +0000)
committerChris Larson <clarson@kergoth.com>
Fri, 22 May 2009 16:32:41 +0000 (16:32 +0000)
commita9d811e87bc8a29c6802380a28cf756534085ecc
tree2991c29a1291f7987a8327313b4303d6dd33aaa4
parent93e00fec86cd21af033aecea3d165b5250558b8f
Faciliates usage in a different resolution from when it was calibrated.

This is the first attempt to implement the possibility of using tslib even
from a graphic mode different from the one that was active when calibration
was performed.

*) Modifies ts_calibrate: now the program appends to /etc/pointercal two
additional values, i.e. x and y of current screen resolution.
*) Adds a ts_option function call to tslib API; right now this can be used to
inform tslib about current screen resolution and rotation.
*) Modifies the "linear" plugin to take into account current screen
resolution, and return values scaled accordingly.

Signed-off-by: Alberto Mardegan <mardy@sourceforge.net>
Signed-off-by: Chris Larson <clarson@kergoth.com>
plugins/linear.c
src/Makefile.am
src/tslib-private.h
src/tslib.h
tests/ts_calibrate.c