Rotate the screen

I have the need (not worth getting into) to mount the screen upside down and I rotate it with

The screen with glide look ok but the touchscreen function doesnt seem to work. if I remove that line things work but its displayed upside down. Any help?

You may need to do this in glide source code