Fix vertex preview at odd render resolutions.

Note that the Windows resolution menu no longer seems to send a resize
event?
Resize and clear cache when changing res.

Native only handles one message at a time, and resizing can require both
(because of auto settings.)
Merge pull request #4593 from unknownbrackets/debugger

Properly handle 2x etc. render resolution