1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-11 15:45:05 +02:00
This commit is contained in:
XProger
2017-04-18 02:00:03 +03:00
2 changed files with 3 additions and 3 deletions

View File

@@ -175,8 +175,8 @@ namespace TR {
struct Color16 { struct Color16 {
uint16 r:5, g:5, b:5, a:1; uint16 r:5, g:5, b:5, a:1;
operator Color24() const { return Color24(r << 3, g << 3, b << 3); } operator Color24() const { return Color24((r << 3) | (r >> 2), (g << 3) | (g >> 2), (b << 3) | (b >> 2)); }
operator Color32() const { return Color32(r << 3, g << 3, b << 3, -a); } operator Color32() const { return Color32((r << 3) | (r >> 2), (g << 3) | (g >> 2), (b << 3) | (b >> 2), -a); }
}; };
struct Vertex { struct Vertex {