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

This commit is contained in:
chrisf
2007-07-14 07:56:50 +00:00
parent a0df84b641
commit 007d7c468c
3 changed files with 12 additions and 12 deletions

View File

@@ -63,9 +63,9 @@ namespace OpenRa.Game
int indicesPerRow = map.Width * 6;
int verticesPerRow = map.Width * 4;
int visibleRows = (int)(viewport.ClientSize.Height / 24.0f + 2);
int visibleRows = (int)(viewport.Size.Y / 24.0f + 2);
int firstRow = (int)(viewport.ScrollPosition.Y / 24.0f);
int firstRow = (int)(viewport.Location.Y / 24.0f);
int lastRow = firstRow + visibleRows;
if (lastRow < 0 || firstRow > map.Height)