Skip to content

Commit

Permalink
TFT followup fixes (MarlinFirmware#19710)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhapsodyv authored and W4tel-BiDi committed Apr 5, 2021
1 parent efe29dd commit 8d8dbb8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Marlin/src/lcd/tft/touch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -295,10 +295,6 @@ bool Touch::get_point(int16_t *x, int16_t *y) {
if (is_touched && calibration.orientation != TOUCH_ORIENTATION_NONE) {
*x = int16_t((int32_t(*x) * calibration.x) >> 16) + calibration.offset_x;
*y = int16_t((int32_t(*y) * calibration.y) >> 16) + calibration.offset_y;
#if (TFT_ROTATION & TFT_ROTATE_180)
*x = TFT_WIDTH - *x;
*y = TFT_HEIGHT - *y;
#endif
}
return is_touched;
}
Expand Down

0 comments on commit 8d8dbb8

Please sign in to comment.