Automatic selection of resolution.

Now its based on supported full screen resolutions. Also, changed the
type of the resolutions from float to int.