Avoid un-necessary video mode changes.

Fixes #11494
(cherry picked from commit 8aca90207ffffc9dd512fa11cd9d88d1f4b5884f)
Revert "Avoid un-necessary video mode changes."

This reverts commit 3c763fdca88075f8ba7667f5096583d66307b2cd.