This commit is contained in:
Chris Forbes
2009-11-09 21:32:28 +13:00
parent 49f48bef6a
commit 6e4a53d49a
2 changed files with 7 additions and 7 deletions

View File

@@ -6,9 +6,6 @@ using System.Runtime.InteropServices;
namespace OpenRa.Game
{
using GRegion = OpenRa.Game.Graphics.Region;
class MainWindow : Form
{
readonly Renderer renderer;
@@ -17,9 +14,10 @@ namespace OpenRa.Game
static Size GetResolution(Settings settings)
{
Size desktopResolution = Screen.PrimaryScreen.Bounds.Size;
var desktopResolution = Screen.PrimaryScreen.Bounds.Size;
return new Size(settings.GetValue("width", desktopResolution.Width),
return new Size(
settings.GetValue("width", desktopResolution.Width),
settings.GetValue("height", desktopResolution.Height));
}
@@ -51,8 +49,8 @@ namespace OpenRa.Game
UiOverlay.ShowUnitDebug = settings.GetValue("udebug", false);
UiOverlay.ShowBuildDebug = settings.GetValue("bdebug", false);
Game.timestep = settings.GetValue("rate", 40);
WorldRenderer.ShowUnitPaths = settings.GetValue("pathdebug", false);
Game.timestep = settings.GetValue("rate", 40);
Game.Replay = settings.GetValue("replay", "");
Game.Initialize(settings.GetValue("map", "scm12ea.ini"), renderer, new int2(ClientSize),