Remove PPos hacks from RadarWidget.

This commit is contained in:
Paul Chote
2013-09-20 21:56:40 +12:00
parent ad44610e5a
commit b335d67ce3
2 changed files with 9 additions and 4 deletions

View File

@@ -151,6 +151,7 @@ namespace OpenRA.Graphics
public PPos ViewToWorldPx(int2 loc) { return (PPos)(1f/Zoom*loc.ToFloat2() + Location).ToInt2(); }
public PPos ViewToWorldPx(MouseInput mi) { return ViewToWorldPx(mi.Location); }
public int2 WorldToViewPx(PPos loc) { return (Zoom * (loc.ToFloat2() - Location)).ToInt2(); }
public void Center(float2 loc)
{