This commit is contained in:
Paul Chote
2010-08-24 23:24:36 +12:00
parent e4271b35dc
commit d8c053253d

View File

@@ -50,7 +50,7 @@ namespace OpenRA.Graphics
{
Timer.Time( "DrawRegions start" );
renderer.BeginFrame(scrollPosition.ToInt2());
renderer.BeginFrame(scrollPosition);
world.WorldRenderer.Draw();
Timer.Time( "worldRenderer: {0}" );
@@ -93,7 +93,7 @@ namespace OpenRA.Graphics
public void Center(int2 loc)
{
scrollPosition = (Game.CellSize*loc - .5f * new float2(Width, Height)).ToInt2();
scrollPosition = (Game.CellSize*loc - .5f * new float2(Width, Height));
}
public void Center(IEnumerable<Actor> actors)
@@ -104,7 +104,7 @@ namespace OpenRA.Graphics
.Select(a => a.CenterLocation)
.Aggregate((a, b) => a + b);
scrollPosition = (avgPos - .5f * new float2(Width, Height)).ToInt2();
scrollPosition = (avgPos - .5f * new float2(Width, Height));
}
public Rectangle? ShroudBounds()