Finally got the window sizing with resolution working correctly