Properly handle 2x etc. render resolution

This seems to work.  Also fixes resizing bugs on Windows.

-[Unknown]