For GE_TFMT_CLUT16 , try framebuffer->format == GE_FORMAT_4444 only but not 565 and 5551