diff --git a/OpenRa.Game/HardwarePalette.cs b/OpenRa.Game/HardwarePalette.cs index bb4e91f8df..4a18910fc4 100644 --- a/OpenRa.Game/HardwarePalette.cs +++ b/OpenRa.Game/HardwarePalette.cs @@ -8,7 +8,7 @@ using OpenRa.FileFormats; namespace OpenRa.Game { - class HardwarePalette + public class HardwarePalette { const int maxEntries = 16; // dont need anything like this many, // but the hardware likes square textures better diff --git a/OpenRa.Game/MainWindow.cs b/OpenRa.Game/MainWindow.cs index 607fb29df1..9f21d9a394 100644 --- a/OpenRa.Game/MainWindow.cs +++ b/OpenRa.Game/MainWindow.cs @@ -44,7 +44,7 @@ namespace OpenRa.Game map = new Map(new IniFile(File.OpenRead("../../../" + settings.GetValue("map", "scm12ea.ini")))); - viewport = new Viewport(ClientSize, new float2(map.Size)); + viewport = new Viewport(ClientSize, new float2(map.Size), renderer); SheetBuilder.Initialize(renderer.Device); diff --git a/OpenRa.Game/Region.cs b/OpenRa.Game/Region.cs index 24e939222e..7b3514cad7 100644 --- a/OpenRa.Game/Region.cs +++ b/OpenRa.Game/Region.cs @@ -20,7 +20,7 @@ namespace OpenRa.Game public void Draw(Renderer renderer, Viewport viewport) { - renderer.Device.EnableScissor(location.X, location.Y, size.Width, size.Height); + renderer.Device.EnableScissor((int)location.X, (int)location.Y, size.Width, size.Height); drawFunction(renderer, viewport); renderer.Device.DisableScissor(); } diff --git a/OpenRa.Game/Renderer.cs b/OpenRa.Game/Renderer.cs index 6a2e9b5685..4815c58b55 100644 --- a/OpenRa.Game/Renderer.cs +++ b/OpenRa.Game/Renderer.cs @@ -8,7 +8,7 @@ using System.IO; namespace OpenRa.Game { - class Renderer + public class Renderer { readonly GraphicsDevice device; readonly Effect shader; diff --git a/OpenRa.Game/Viewport.cs b/OpenRa.Game/Viewport.cs index e25e1de745..649cd403c9 100644 --- a/OpenRa.Game/Viewport.cs +++ b/OpenRa.Game/Viewport.cs @@ -49,7 +49,6 @@ namespace OpenRa.Game break; case AnchorStyles.None: throw new NotImplementedException(); - break; } }