summaryrefslogtreecommitdiff
path: root/src/gui/widgets/playerbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/playerbox.cpp')
-rw-r--r--src/gui/widgets/playerbox.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/gui/widgets/playerbox.cpp b/src/gui/widgets/playerbox.cpp
index b6217383f..98e6e8d5a 100644
--- a/src/gui/widgets/playerbox.cpp
+++ b/src/gui/widgets/playerbox.cpp
@@ -79,8 +79,8 @@ PlayerBox::~PlayerBox()
if (gui != nullptr)
gui->removeDragged(this);
- Theme::unloadRect(mBackground);
- Theme::unloadRect(mSelectedBackground);
+ Theme::unloadRect(mBackground, 0, 8);
+ Theme::unloadRect(mSelectedBackground, 0, 8);
mBeing = nullptr;
}
@@ -95,7 +95,10 @@ void PlayerBox::init(std::string name, std::string selectedName)
if (name.empty())
name = "playerbox.xml";
mSkin = theme->loadSkinRect(mBackground,
- name, "playerbox_background.xml");
+ name,
+ "playerbox_background.xml",
+ 0,
+ 8);
if (mSkin != nullptr)
{
mDrawBackground = (mSkin->getOption("drawbackground") != 0);
@@ -106,7 +109,10 @@ void PlayerBox::init(std::string name, std::string selectedName)
if (selectedName.empty())
selectedName = "playerboxselected.xml";
mSelectedSkin = theme->loadSkinRect(mSelectedBackground,
- selectedName, "playerbox_background.xml");
+ selectedName,
+ "playerbox_background.xml",
+ 0,
+ 8);
}
else
{