fix resolution setting issue
Merge pull request #747 from ganyangbbl/resolution_issue

fix resolution setting issue