Fix immersive mode & gl resize

- Pass raw width & height to internal C/C++ code, so that resizes propagate
- Fixes input button & image missalignment on 4.4+
Add diagonials