Fix the different resolution problem. The mainly purpose is fit the vncviewer's resolution.