Skip to content

Commit

Permalink
Include resources in the editor preview.
Browse files Browse the repository at this point in the history
  • Loading branch information
pchote committed Sep 16, 2010
1 parent 94e5b02 commit d530cf2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions OpenRA.Editor/Form1.cs
Expand Up @@ -202,7 +202,7 @@ void PrepareMapResources(Manifest manifest, Map map)
p.Visible = true;
p.ResumeLayout();
}
pmMiniMap.Image = Minimap.TerrainBitmap(surface1.Map, true);
pmMiniMap.Image = Minimap.AddStaticResources(surface1.Map, Minimap.TerrainBitmap(surface1.Map, true));
}

static Bitmap RenderTemplate(TileSet ts, ushort n, Palette p)
Expand Down Expand Up @@ -491,7 +491,7 @@ private void layersFloaterToolStripMenuItem_Click(object sender, EventArgs e)

private void OnSurfaceClicked(object sender, EventArgs e)
{
pmMiniMap.Image = Minimap.TerrainBitmap(surface1.Map, true);
pmMiniMap.Image = Minimap.AddStaticResources(surface1.Map, Minimap.TerrainBitmap(surface1.Map, true));
}
}
}
4 changes: 1 addition & 3 deletions OpenRA.Editor/MapSelect.cs
Expand Up @@ -59,9 +59,7 @@ private void MapList_SelectedIndexChanged(object sender, EventArgs e)
pbMinimap.Image = null;
try
{
var b = Minimap.TerrainBitmap(map, true);
Minimap.AddStaticResources(map, b);
pbMinimap.Image = b;
pbMinimap.Image = Minimap.AddStaticResources(map, Minimap.TerrainBitmap(map, true));
}
catch (Exception ed)
{
Expand Down

0 comments on commit d530cf2

Please sign in to comment.