commit | ffd704d92f9ce76cb238a4a4c7d66076a0725f46 | [log] [tgz] |
---|---|---|
author | Ryan C. Gordon <icculus@icculus.org> | Sun Aug 09 00:55:39 2020 -0400 |
committer | Ryan C. Gordon <icculus@icculus.org> | Sun Aug 09 00:55:39 2020 -0400 |
tree | 1471429a55887213f895e9ab3f1e04dbd0bf25e1 | |
parent | adea0e29898c4fc177b12014f3c81bb228423814 [diff] |
render: fixes to how we convert touch events for logical scaling. We now handle HiDPI correctly, and touches are clamped to the viewport. So if you are rendering to a logical 640x480 in a 720p window, and touch the letterboxing at point (640,700), it will report the touch at (0.5,1.0) instead of outside the documented range. --HG-- extra : rebase_source : 87c75935f2c0e71611ee57621b92622f2ae0ee2e