Merge pull request #5532 from chinhodado/patch-2

change to correct enums
This commit is contained in:
Henrik Rydgård 2014-02-21 20:00:31 +07:00
commit b32200895d

View File

@ -80,16 +80,16 @@ static inline u32 LookupColor(unsigned int index, unsigned int level)
const int clutSharingOffset = mipmapShareClut ? 0 : level * 16;
switch (gstate.getClutPaletteFormat()) {
case GE_TFMT_5650:
case GE_CMODE_16BIT_BGR5650:
return DecodeRGB565(reinterpret_cast<u16*>(clut)[index + clutSharingOffset]);
case GE_TFMT_5551:
case GE_CMODE_16BIT_ABGR5551:
return DecodeRGBA5551(reinterpret_cast<u16*>(clut)[index + clutSharingOffset]);
case GE_TFMT_4444:
case GE_CMODE_16BIT_ABGR4444:
return DecodeRGBA4444(reinterpret_cast<u16*>(clut)[index + clutSharingOffset]);
case GE_TFMT_8888:
case GE_CMODE_32BIT_ABGR8888:
return DecodeRGBA8888(clut[index + clutSharingOffset]);
default: