Fixed support for non 32-bit display modes.