Fix TrySetResolution
Merge pull request #676 from abeloin/master

Fix TrySetResolution