From df3fd0bc6ce06d61cae05b5d93961e3c2d033027 Mon Sep 17 00:00:00 2001 From: SBird1337 Date: Fri, 3 Apr 2015 13:51:28 +0200 Subject: [PATCH] fixed palette entry (again) --- Single/Graphics/PaletteEntry.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Single/Graphics/PaletteEntry.cs b/Single/Graphics/PaletteEntry.cs index 5782ef2..489c45f 100644 --- a/Single/Graphics/PaletteEntry.cs +++ b/Single/Graphics/PaletteEntry.cs @@ -25,7 +25,7 @@ public byte[] GetRawData() public Color ToColor() { - return Color.FromArgb((Data & 0x1F) * 8, ((Data >> 8) & 0x1F) * 8, (Data >> 16) * 8); + return Color.FromArgb((Data & 0x1F) * 8, ((Data >> 5) & 0x1F) * 8, (Data >> 10) * 8); } } }