mono/MonoGame — pull request #729 by tomspilman (2012-08-30 06:38:07+00:00)
Title: WinRT Backbuffer Auto-Sizing

This is based on discussions from these threads...

https://github.com/mono/MonoGame/issues/720
http://monogame.codeplex.com/discussions/382915

The issue is that people want the Game/GameWindow to automatically set the backbuffer size to the client size, but also if they set a differ backbuffer size then they want to maintain that ratio when the window goes into the snapped or filled states.

So with this pull we now...

- We store a scale between the client size and the preferred backbuffer size the user set in the Game constructor if any.
- When the client resizes we calculate the new preferred backbuffer size using that scale.
- We then fire off the application view state event and the client size changed events... this is the users chance to override our settings if they want to.

It would be great if a few people could test this branch with their own projects before we decide to merge it.