ugfx_release_2.6
Tectu 2012-08-09 09:39:22 +02:00
parent fdb5d8a580
commit fda647c6c2
1 changed files with 2 additions and 0 deletions

View File

@ -74,6 +74,7 @@ static uint16_t _tpReadRealX(void) {
results += tp_lld_read_x();
}
// 12-bit
x = (((SCREEN_WIDTH-1) * (results/CONVERSIONS)) / 2048);
return x;
@ -93,6 +94,7 @@ static uint16_t _tpReadRealY(void) {
results += tp_lld_read_y();
}
// 12-bit
y = (((SCREEN_HEIGHT-1) * (results/CONVERSIONS)) / 2048);
return y;