Ili9341 + xpt2046 touch area out of sync

I’m trying to get the UI controls to respond to the touch events on the screen and they seem to work except that the area on the screen is out of sync with where the ui elements are positioned. The strange thing is that when I add two buttons to the screen their “offset” touch area is not off by the same x,y area. One could be off by (10, 5) and the other by (0, 15).

I’ve tried manually calibrating the xpt2046 x,y coords, because I can’t get tpcal to work, but no luck.

Any help would be very much appreciated.

you have to calibrate the touch screen to the display.