[Bug 1069765] garbage in graphics output after switching back from console