Introduce ActorPreviewWidget.

This commit is contained in:
Paul Chote
2014-07-20 23:27:23 +12:00
committed by Paul Chote
parent db1a27b071
commit 268ca94dc1
5 changed files with 139 additions and 0 deletions

View File

@@ -108,7 +108,11 @@ namespace OpenRA.Graphics
public void BeginFrame(int2 scroll, float zoom)
{
Device.Clear();
SetViewportParams(scroll, zoom);
}
public void SetViewportParams(int2 scroll, float zoom)
{
var resolutionChanged = lastResolution != Resolution;
if (resolutionChanged)
{