summaryrefslogtreecommitdiff
path: root/src/gui/widgets/avatarlistbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/avatarlistbox.cpp')
-rw-r--r--src/gui/widgets/avatarlistbox.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/widgets/avatarlistbox.cpp b/src/gui/widgets/avatarlistbox.cpp
index 07115640b..a9ef12c99 100644
--- a/src/gui/widgets/avatarlistbox.cpp
+++ b/src/gui/widgets/avatarlistbox.cpp
@@ -139,7 +139,6 @@ void AvatarListBox::draw(Graphics *graphics)
{
graphics->calcTileCollection(&vertexes, icon,
mImagePadding, y + mPadding);
- graphics->finalize(&vertexes);
}
else
{
@@ -314,7 +313,10 @@ void AvatarListBox::draw(Graphics *graphics)
}
if (useCaching)
+ {
+ graphics->finalize(&vertexes);
graphics->drawTileCollection(&vertexes);
+ }
setWidth(parent->getWidth() - 10);
BLOCK_END("AvatarListBox::draw")