summaryrefslogtreecommitdiff
path: root/src/gui/widgets/textfield.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/textfield.cpp')
-rw-r--r--src/gui/widgets/textfield.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gui/widgets/textfield.cpp b/src/gui/widgets/textfield.cpp
index 8af2109d8..167d2b850 100644
--- a/src/gui/widgets/textfield.cpp
+++ b/src/gui/widgets/textfield.cpp
@@ -146,8 +146,11 @@ TextField::TextField(const Widget2 *restrict const widget,
{
if (theme != nullptr)
{
- mSkin = theme->loadSkinRect(skin, "textfield.xml",
- "textfield_background.xml");
+ mSkin = theme->loadSkinRect(skin,
+ "textfield.xml",
+ "textfield_background.xml",
+ 0,
+ 8);
}
}
@@ -181,7 +184,7 @@ TextField::~TextField()
if (theme != nullptr)
{
theme->unload(mSkin);
- Theme::unloadRect(skin);
+ Theme::unloadRect(skin, 0, 8);
}
}
mTextChunk.deleteImage();