Make sure we update dc->bitsPerPixel.