git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1236 993157c7-ee19-0410-b2c4-bb4e9862e678
This commit is contained in:
@@ -30,11 +30,11 @@ namespace OpenRa.Game
|
||||
}
|
||||
}
|
||||
|
||||
public PointF MapTextureCoords(PointF p)
|
||||
public float2 MapTextureCoords(float2 p)
|
||||
{
|
||||
RectangleF uv = TextureCoords;
|
||||
|
||||
return new PointF(
|
||||
return new float2(
|
||||
p.X > 0 ? uv.Right : uv.Left,
|
||||
p.Y > 0 ? uv.Bottom : uv.Top);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user