git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1197 993157c7-ee19-0410-b2c4-bb4e9862e678

This commit is contained in:
chrisf
2007-07-13 11:37:40 +00:00
parent 2109bd7ba9
commit 79c3aad1a6
15 changed files with 18 additions and 893 deletions

View File

@@ -28,16 +28,15 @@ namespace OpenRa.FileFormats
if (t == null)
return TextureChannel.Red;
if (t == TextureChannel.Red)
return TextureChannel.Green;
switch (t.Value)
{
case TextureChannel.Red: return TextureChannel.Green;
case TextureChannel.Green: return TextureChannel.Blue;
case TextureChannel.Blue: return TextureChannel.Alpha;
case TextureChannel.Alpha: return null;
if (t == TextureChannel.Green)
return TextureChannel.Blue;
if (t == TextureChannel.Blue)
return TextureChannel.Alpha;
return null;
default: return null;
}
}
public SheetRectangle<T> AddImage(Size imageSize)