minimap: add support for sprite scaling to SpriteRenderer/Graphics.Util

This commit is contained in:
Chris Forbes
2010-01-05 13:51:51 +13:00
parent 512e56aec7
commit dc7c6d5cd6
3 changed files with 12 additions and 7 deletions

View File

@@ -34,7 +34,7 @@ namespace OpenRa.Game.Graphics
for( int i = map.XOffset ; i < map.XOffset + map.Width; i++ )
{
Sprite tile = tileMapping[map.MapTiles[i, j]];
Util.FastCreateQuad(vertices, indices, Game.CellSize * new float2(i, j), tile, 0, nv, ni);
Util.FastCreateQuad(vertices, indices, Game.CellSize * new float2(i, j), tile, 0, nv, ni, tile.size);
nv += 4;
ni += 6;
}