summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-22 14:48:04 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-22 14:48:04 +0300
commit60ae9c1b34a6fe98dfde22e38ec95e65d7cdcf1c (patch)
treeaff7b0110b1581b8de57049b46456d1bb81803cd /src/gui/widgets
parent32adef4efc22afa18be5b8f3858f2f8dd36bbc67 (diff)
downloadplus-60ae9c1b34a6fe98dfde22e38ec95e65d7cdcf1c.tar.gz
plus-60ae9c1b34a6fe98dfde22e38ec95e65d7cdcf1c.tar.bz2
plus-60ae9c1b34a6fe98dfde22e38ec95e65d7cdcf1c.tar.xz
plus-60ae9c1b34a6fe98dfde22e38ec95e65d7cdcf1c.zip
Fix drawing avatarlistbox in modernopengl.
Diffstat (limited to 'src/gui/widgets')
-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")