ensure to use inverted palette for inverted windows