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

This commit is contained in:
(no author)
2007-07-21 03:52:14 +00:00
parent cb7b5dedd7
commit c331e190a7
10 changed files with 16 additions and 38 deletions

View File

@@ -3,7 +3,6 @@ using System.Collections.Generic;
using System.Text;
using System.Drawing;
using System.Windows.Forms;
using BluntDirectX.Direct3D;
namespace OpenRa.Game
{
@@ -22,8 +21,7 @@ namespace OpenRa.Game
public void Scroll(float2 delta)
{
scrollPosition = (scrollPosition + delta).Constrain(
new Range<float2>(float2.Zero, mapSize));
scrollPosition = (scrollPosition + delta).Constrain(float2.Zero, mapSize);
}
public Viewport(float2 size, float2 mapSize, Renderer renderer)