Changes for windows 16-color mode