removed some changes 57dbcaa45e4de7d946ea8ce008eee6f7c97550e9
- SetFrameSize not performed correctly, so multiple screen resolutions did not work.