summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/itemcontainer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/widgets/itemcontainer.cpp b/src/gui/widgets/itemcontainer.cpp
index 5f1cd4b05..4b70c86b7 100644
--- a/src/gui/widgets/itemcontainer.cpp
+++ b/src/gui/widgets/itemcontainer.cpp
@@ -354,7 +354,7 @@ void ItemContainer::draw(Graphics *const graphics)
graphics->drawTileCollection(mVertexes);
}
- for (int j = 0; j < mGridRows; j++)
+ for (int j = 0; j < mDrawRows; j++)
{
const int intY0 = j * mBoxHeight;
int itemIndex = j * mGridColumns - 1;
@@ -395,7 +395,7 @@ void ItemContainer::draw(Graphics *const graphics)
}
}
- for (int j = 0; j < mGridRows; j++)
+ for (int j = 0; j < mDrawRows; j++)
{
const int intY0 = j * mBoxHeight;
int itemIndex = j * mGridColumns - 1;
@@ -476,7 +476,7 @@ void ItemContainer::safeDraw(Graphics *const graphics)
}
}
- for (int j = 0; j < mGridRows; j++)
+ for (int j = 0; j < mDrawRows; j++)
{
const int intY0 = j * mBoxHeight;
int itemIndex = j * mGridColumns - 1;
@@ -517,7 +517,7 @@ void ItemContainer::safeDraw(Graphics *const graphics)
}
}
- for (int j = 0; j < mGridRows; j++)
+ for (int j = 0; j < mDrawRows; j++)
{
const int intY0 = j * mBoxHeight;
int itemIndex = j * mGridColumns - 1;