mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-26 08:55:58 +00:00
Merge pull request #5532 from chinhodado/patch-2
change to correct enums
This commit is contained in:
commit
b32200895d
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user