This problem has been existing since Windows 2000. Microsoft and the graphic card manufacturers blame each other for this problem. As far as I know, currently there is no solution to this problem. One way to get around with it is to first change the resolution to 640x480 manually before you start to run the game.