update display resolution