summaryrefslogtreecommitdiff
path: root/src/gui/widgets/dropdown.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/dropdown.cpp')
-rw-r--r--src/gui/widgets/dropdown.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gui/widgets/dropdown.cpp b/src/gui/widgets/dropdown.cpp
index 7e9de9b53..1f8b54bc1 100644
--- a/src/gui/widgets/dropdown.cpp
+++ b/src/gui/widgets/dropdown.cpp
@@ -89,7 +89,10 @@ DropDown::DropDown(const Widget2 *const widget,
// Load the background skin
for (int i = 0; i < 2; i ++)
{
- Skin *const skin = theme->load(dropdownFiles[i], "dropdown.xml");
+ Skin *const skin = theme->load(dropdownFiles[i],
+ "dropdown.xml",
+ true,
+ theme->getThemePath());
if (skin != nullptr)
{
if (i == 0)
@@ -119,7 +122,7 @@ DropDown::DropDown(const Widget2 *const widget,
}
// get the border skin
- theme->loadRect(skinRect, "dropdown_background.xml", "");
+ theme->loadRect(skinRect, "dropdown_background.xml", "", 0, 8);
}
instances++;
@@ -179,7 +182,7 @@ DropDown::~DropDown()
if (theme != nullptr)
{
theme->unload(mSkin);
- Theme::unloadRect(skinRect);
+ Theme::unloadRect(skinRect, 0, 8);
}
}
}