Fix a problem when bg_color == fg_color
Invert the intensity bit if the background_color == foreground_color