Make editor brushes disposable.
This commit is contained in:
@@ -24,7 +24,7 @@ using OpenRA.Widgets;
|
||||
|
||||
namespace OpenRA.Mods.Common.Widgets
|
||||
{
|
||||
public class EditorTileBrush : IEditorBrush
|
||||
public sealed class EditorTileBrush : IEditorBrush
|
||||
{
|
||||
public readonly ushort Template;
|
||||
|
||||
@@ -156,5 +156,7 @@ namespace OpenRA.Mods.Common.Widgets
|
||||
preview.Bounds.Width = (int)(zoom * bounds.Width);
|
||||
preview.Bounds.Height = (int)(zoom * bounds.Height);
|
||||
}
|
||||
|
||||
public void Dispose() { }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user