more or less fail

This commit is contained in:
Paul Chote
2010-08-14 21:36:13 +12:00
parent dda6556e17
commit 0f6564f31a
4 changed files with 6 additions and 7 deletions

View File

@@ -39,8 +39,7 @@ namespace OpenRA.FileFormats
byte r = (byte)(reader.ReadByte() << 2);
byte g = (byte)(reader.ReadByte() << 2);
byte b = (byte)(reader.ReadByte() << 2);
colors[i] = (uint)Color.FromArgb(r,g,b).ToArgb();//(uint)(((byte)255 << 0) | (r << 16));// | (g << 8) | b);
colors[i] = (uint)((255 << 24) | (r << 16) | (g << 8) | b);
}
}