Remove some bogosity from widget mouse handling.

This commit is contained in:
Paul Chote
2011-01-05 23:01:17 +13:00
parent df460d7407
commit 5254deedcb
13 changed files with 63 additions and 50 deletions

View File

@@ -33,8 +33,6 @@ namespace OpenRA.Widgets
}
public override Widget Clone() { return new MapPreviewWidget(this); }
public override bool HandleInputInner(MouseInput mi) { return true; }
public int2 ConvertToPreview(MapStub map, int2 point)
{
return new int2(MapRect.X + (int)(PreviewScale*(point.X - map.Bounds.Left)) , MapRect.Y + (int)(PreviewScale*(point.Y - map.Bounds.Top)));