public GraphicsDisplay(Texture2D graphicsTexture, SpriteBatch spriteBatch, bool highResolution)
{
int iconSize;
int emptySquareOffset;
if (highResolution)
{
iconSize = IconSizeRetina;
emptySquareOffset = 2;
}
else
{
iconSize = IconSizeLowResolution;
emptySquareOffset = 1;
}
this.graphicsTexture = graphicsTexture;
this.spriteBatch = spriteBatch;
List<Rectangle> imageList = new List<Rectangle>();
// This is the empty square image for all basic single color drawing
imageList.Add(new Rectangle(0, 0, 0, 0));
for (int y = 0; y < SpriteMapIconRows; y++)
{
for (int x = 0; x < SpriteMapIconColumns; x++)
{
imageList.Add(new Rectangle(emptySquareOffset + (x * iconSize), y * iconSize, iconSize, iconSize));
}
}
this.imageRectangles = imageList.ToArray();
}