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

This commit is contained in:
(no author)
2007-07-24 06:37:18 +00:00
parent 51bc9aa134
commit 2767794a89
8 changed files with 62 additions and 46 deletions

View File

@@ -76,7 +76,7 @@ namespace OpenRa.Game
if (e.Button == MouseButtons.Left)
{
float2 point = new float2(e.Location) + game.viewport.Location;
RectangleF rect = new RectangleF(sidebar.Location.ToPointF(), new SizeF(sidebar.Width, game.viewport.Height));
RectangleF rect = new RectangleF(sidebar.Region.Location.ToPointF(), new SizeF(sidebar.Width, game.viewport.Height));
if (rect.Contains(point.ToPointF()))
{
sidebar.Build( sidebar.FindSpriteAtPoint( point ), game );