4" LCD TFT display 320x480 with ST7796S driver does not display properly

I had a similar problem years ago with a 240x400. Not only was the cursor wrong but the colour seemed to be CMY. The image was off to one side. Everything was fine when I added 80 to each x-coordinate. The y-coords were OK. I never knew what the controller chip was, and I never really fixed the colour, but the display was servicable.