1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-01-17 21:09:00 +01:00

less greenish for Sega Saturn data

This commit is contained in:
XProger 2021-03-23 05:24:36 +03:00
parent 734f6255c0
commit 2f788bd67e
2 changed files with 3 additions and 4 deletions

View File

@ -1042,7 +1042,7 @@ struct Level : IGame {
delete zoneCache;
delete atlasRooms;
#ifndef FFP
#ifndef SPLIT_BY_TILE
delete atlasObjects;
delete atlasSprites;
delete atlasGlyphs;

View File

@ -1480,11 +1480,10 @@ union ColorCLUT { // RGBA5551
ColorCLUT() {}
ColorCLUT(uint16 value) : value(value) {}
operator Color24() const { return Color24((r << 3) | (r >> 2), (g << 3) | (g >> 2), (b << 3) | (b >> 2)); }
operator Color32() const { return Color32((r << 3) | (r >> 2), (g << 3) | (g >> 2), (b << 3) | (b >> 2), -a); }
operator Color24() const { return Color24((r << 3) | (r >> 2), (g << 3), (b << 3)); }
operator Color32() const { return Color32((r << 3) | (r >> 2), (g << 3), (b << 3), -a); }
};
struct ColorIndex4 {
uint8 a:4, b:4;
};