git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1234 993157c7-ee19-0410-b2c4-bb4e9862e678

This commit is contained in:
beedee
2007-07-14 07:25:15 +00:00
parent 2d51b951cd
commit a515b9af62
2 changed files with 7 additions and 7 deletions

View File

@@ -7,11 +7,11 @@ namespace OpenRa.Game
{
class Region
{
PointF location;
Point location;
Size size;
Renderable drawFunction;
public Region(PointF location, Size size, Renderable drawFunction)
public Region(Point location, Size size, Renderable drawFunction)
{
this.location = location;
this.size = size;
@@ -20,7 +20,7 @@ namespace OpenRa.Game
public void Draw(Renderer renderer, Viewport viewport)
{
renderer.Device.EnableScissor((int)location.X, (int)location.Y, size.Width, size.Height);
renderer.Device.EnableScissor(location.X, location.Y, size.Width, size.Height);
drawFunction(renderer, viewport);
renderer.Device.DisableScissor();
}