Added basic resolution change support