Updated window resizing code to support rotation and snapping of app on winrt

The window resizing code was updated to support rotation and snapping of app on WinRT. App should how draw correctly in various device orientations and touch will now work after a rotation.