diff --git a/OpenRA.Game/Graphics/IGraphicsDevice.cs b/OpenRA.Game/Graphics/IGraphicsDevice.cs index a66c199165..07b78c5085 100755 --- a/OpenRA.Game/Graphics/IGraphicsDevice.cs +++ b/OpenRA.Game/Graphics/IGraphicsDevice.cs @@ -32,7 +32,7 @@ namespace OpenRA IGraphicsDevice Create(Size size, WindowMode windowMode); } - public enum BlendMode { None, Alpha, Additive, Subtractive, Multiply } + public enum BlendMode : byte { None, Alpha, Additive, Subtractive, Multiply } public interface IGraphicsDevice : IDisposable { diff --git a/OpenRA.Game/Graphics/Sprite.cs b/OpenRA.Game/Graphics/Sprite.cs index 9a2ccb32d4..a022ea4ea2 100644 --- a/OpenRA.Game/Graphics/Sprite.cs +++ b/OpenRA.Game/Graphics/Sprite.cs @@ -47,7 +47,7 @@ namespace OpenRA.Graphics } } - public enum TextureChannel + public enum TextureChannel : byte { Red = 0, Green = 1,