Use setScreenMode instead of setResolution.