author | mickeyl <mickeyl> | 2005-09-03 20:36:38 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-09-03 20:36:38 (UTC) |
commit | 62ae8e732a5d4e5b23d060185c0655b1666be59c (patch) (side-by-side diff) | |
tree | 71e6d1530036731274f8ea0262423e74e86fe9f7 | |
parent | de950b18690b8981a2bddaca68cbd5d48c71f689 (diff) | |
download | opie-62ae8e732a5d4e5b23d060185c0655b1666be59c.zip opie-62ae8e732a5d4e5b23d060185c0655b1666be59c.tar.gz opie-62ae8e732a5d4e5b23d060185c0655b1666be59c.tar.bz2 |
switch to 5-point calibration to make it work on some newer Zaurii
this goes hand in hand with the integration of the RMK tslib calibration
algorithm into Qt/Embedded 2.3.x. Patch courtesy Richard Purdie.
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | core/apps/calibrate/calibrate.cpp | 6 |
2 files changed, 5 insertions, 4 deletions
@@ -67,3 +67,4 @@ * Fix / Optimize number of scanned directories (ljp) - + * Use five point mouse calibration to make calibrated mouse drivers work on newer Zaurii (rp,mickeyl) + 2005-03-25 Opie 1.2.0 diff --git a/core/apps/calibrate/calibrate.cpp b/core/apps/calibrate/calibrate.cpp index 5f52bdc..53388f1 100644 --- a/core/apps/calibrate/calibrate.cpp +++ b/core/apps/calibrate/calibrate.cpp @@ -126,3 +126,3 @@ bool Calibrate::sanityCheck() // not needed anywhere .. just calculate it, so it's there - cd.devPoints[QWSPointerCalibrationData::Center] = QRect( tl, br ).normalize().center(); + //cd.devPoints[QWSPointerCalibrationData::Center] = QRect( tl, br ).normalize().center(); @@ -177,3 +177,3 @@ void Calibrate::paintEvent( QPaintEvent * ) QPainter p( this ); - int y = height() / 3; + int y = height() / 2; @@ -225,3 +225,3 @@ void Calibrate::mouseReleaseEvent( QMouseEvent * ) cd.devPoints[ location ] = penPos; - if ( location < QWSPointerCalibrationData::TopRight ) { + if ( location < QWSPointerCalibrationData::Center ) { location = (QWSPointerCalibrationData::Location) ( int( location ) + 1 ); |