Added support for changing the video modes of windows