Made displayed resolution independent of window size.

TODO still need to support various aspect ratios.