git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1345 993157c7-ee19-0410-b2c4-bb4e9862e678

This commit is contained in:
(no author)
2007-07-24 10:40:47 +00:00
parent ced4d24793
commit 07c0a9f40f
2 changed files with 3 additions and 3 deletions

View File

@@ -37,7 +37,7 @@ namespace OpenRa.Game
Location = Point.Empty; Location = Point.Empty;
Visible = true; Visible = true;
bool windowed = !settings.GetValue("fullscreeen", false); bool windowed = !settings.GetValue("fullscreen", false);
renderer = new Renderer(this, GetResolution(settings), windowed); renderer = new Renderer(this, GetResolution(settings), windowed);
SheetBuilder.Initialize( renderer ); SheetBuilder.Initialize( renderer );

View File

@@ -40,10 +40,10 @@ namespace OpenRa.Game
for (int i = 0; i < width; i++) for (int i = 0; i < width; i++)
for (int j = 0; j < height; j++) for (int j = 0; j < height; j++)
spriteRenderer.DrawSprite(blocked ? buildBlocked : buildOk, 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; int2 position;
int width, height; int width, height;