private Point MouseLocation(MouseEventArgs e)
{
int tx = e.X;
int ty = e.Y;
Bitmap icon = (Bitmap)MainForm.Instance.CurrentTool.Icon;
tx = (int)(tx / zoomFactor);
ty = (int)(ty / zoomFactor);
if (MainForm.Instance.CurrentTool.IconSnap)
{
tx = (tx / Screen.Tileset.TileSize) * Screen.Tileset.TileSize;
ty = (ty / Screen.Tileset.TileSize) * Screen.Tileset.TileSize;
}
return new Point(tx, ty);
}