diff --git a/OpenRA.Game/GameRules/Settings.cs b/OpenRA.Game/GameRules/Settings.cs index a926542694..42f7cc1d10 100755 --- a/OpenRA.Game/GameRules/Settings.cs +++ b/OpenRA.Game/GameRules/Settings.cs @@ -62,6 +62,7 @@ namespace OpenRA.GameRules public int BatchSize = 8192; public int NumTempBuffers = 8; + public int SheetSize = 2048; } public class SoundSettings @@ -99,7 +100,6 @@ namespace OpenRA.GameRules // Internal game settings public int Timestep = 40; - public int SheetSize = 2048; } public class Settings diff --git a/OpenRA.Game/Graphics/Renderer.cs b/OpenRA.Game/Graphics/Renderer.cs index 3675d6b08c..9718ba7b66 100644 --- a/OpenRA.Game/Graphics/Renderer.cs +++ b/OpenRA.Game/Graphics/Renderer.cs @@ -12,12 +12,12 @@ using System; using System.Collections.Generic; using System.Drawing; using System.IO; +using System.Linq; using System.Reflection; using System.Windows.Forms; using OpenRA.FileFormats; using OpenRA.FileFormats.Graphics; using OpenRA.Support; -using System.Linq; namespace OpenRA.Graphics { @@ -47,7 +47,7 @@ namespace OpenRA.Graphics { TempBufferSize = Game.Settings.Graphics.BatchSize; TempBufferCount = Game.Settings.Graphics.NumTempBuffers; - SheetSize = Game.Settings.Game.SheetSize; // TODO: move to Graphics. + SheetSize = Game.Settings.Graphics.SheetSize; SpriteShader = device.CreateShader("world-shp"); LineShader = device.CreateShader("world-line");