From eacedfca94df478250131de3556d429788f509a9 Mon Sep 17 00:00:00 2001 From: XProger Date: Mon, 2 Mar 2020 01:05:51 +0300 Subject: [PATCH] fix colors for Sega Saturn format --- src/format.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/format.h b/src/format.h index f62408a..ea34aa9 100644 --- a/src/format.h +++ b/src/format.h @@ -6343,7 +6343,7 @@ namespace TR { if (t->attribute == 1 && idx == 0) dst->color[y * 256 + x].value = 0; else - dst->color[y * 256 + x] = Color16(swap16(c.value)); + dst->color[y * 256 + x] = ColorCLUT(swap16(c.value)); } break; @@ -6435,7 +6435,7 @@ namespace TR { // common methods Color32 getColor(int texture) const { switch (version) { - case VER_TR1_SAT : return Color16((uint16)texture); + case VER_TR1_SAT : return ColorCLUT((uint16)texture); case VER_TR1_PC : #ifdef _GAPI_SW return Color32(texture & 0xFF, 0, 0, 142);