FORMAT_PAL
if (mode.format != FORMAT_PAL) {
mode.format = FORMAT_PAL;
} else if (mode->format == FORMAT_PAL) {