diff --git a/OpenRa.Game/MainWindow.cs b/OpenRa.Game/MainWindow.cs index 8086a749cc..cd38bdace4 100644 --- a/OpenRa.Game/MainWindow.cs +++ b/OpenRa.Game/MainWindow.cs @@ -37,7 +37,7 @@ namespace OpenRa.Game Location = Point.Empty; Visible = true; - bool windowed = !settings.GetValue("fullscreeen", false); + bool windowed = !settings.GetValue("fullscreen", false); renderer = new Renderer(this, GetResolution(settings), windowed); SheetBuilder.Initialize( renderer ); diff --git a/OpenRa.Game/UiOverlay.cs b/OpenRa.Game/UiOverlay.cs index 3b6b91cdfb..37599c376a 100644 --- a/OpenRa.Game/UiOverlay.cs +++ b/OpenRa.Game/UiOverlay.cs @@ -40,10 +40,10 @@ namespace OpenRa.Game for (int i = 0; i < width; i++) for (int j = 0; j < height; j++) spriteRenderer.DrawSprite(blocked ? buildBlocked : buildOk, - 24 * (position + new int2(i, j)), 0); + 24 * (position + new int2(i, j)) + game.viewport.Location, 0); } - bool hasOverlay = false, blocked; + bool blocked, hasOverlay; int2 position; int width, height;