This was SVN commit r8356.
Refactor the video mode setting logic to cope better with dynamic changes. This was SVN commit r7606.