mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-25 07:13:34 +01:00
change to correct enums
This commit is contained in:
1 parent
4e93573422
commit
d110d4e3cf
1 file changed
+4
-4
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user