1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-14 09:04:31 +02:00

fix colors for Sega Saturn format

This commit is contained in:
XProger
2020-03-02 01:05:51 +03:00
parent 8d45f27965
commit eacedfca94

View File

@@ -6343,7 +6343,7 @@ namespace TR {
if (t->attribute == 1 && idx == 0) if (t->attribute == 1 && idx == 0)
dst->color[y * 256 + x].value = 0; dst->color[y * 256 + x].value = 0;
else else
dst->color[y * 256 + x] = Color16(swap16(c.value)); dst->color[y * 256 + x] = ColorCLUT(swap16(c.value));
} }
break; break;
@@ -6435,7 +6435,7 @@ namespace TR {
// common methods // common methods
Color32 getColor(int texture) const { Color32 getColor(int texture) const {
switch (version) { switch (version) {
case VER_TR1_SAT : return Color16((uint16)texture); case VER_TR1_SAT : return ColorCLUT((uint16)texture);
case VER_TR1_PC : case VER_TR1_PC :
#ifdef _GAPI_SW #ifdef _GAPI_SW
return Color32(texture & 0xFF, 0, 0, 142); return Color32(texture & 0xFF, 0, 0, 142);