Include resources in the editor preview.

This commit is contained in:
Paul Chote
2010-09-17 09:09:36 +12:00
parent 94e5b02a39
commit d530cf22da
2 changed files with 3 additions and 5 deletions

View File

@@ -202,7 +202,7 @@ namespace OpenRA.Editor
p.Visible = true; p.Visible = true;
p.ResumeLayout(); 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) static Bitmap RenderTemplate(TileSet ts, ushort n, Palette p)
@@ -491,7 +491,7 @@ namespace OpenRA.Editor
private void OnSurfaceClicked(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));
} }
} }
} }

View File

@@ -59,9 +59,7 @@ namespace OpenRA.Editor
pbMinimap.Image = null; pbMinimap.Image = null;
try try
{ {
var b = Minimap.TerrainBitmap(map, true); pbMinimap.Image = Minimap.AddStaticResources(map, Minimap.TerrainBitmap(map, true));
Minimap.AddStaticResources(map, b);
pbMinimap.Image = b;
} }
catch (Exception ed) catch (Exception ed)
{ {