dds: Fix palette mode on big endian