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.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gui/widgets/textfield.cpp b/src/gui/widgets/textfield.cpp
index 49d3fd412..ce1aacd9e 100644
--- a/src/gui/widgets/textfield.cpp
+++ b/src/gui/widgets/textfield.cpp
@@ -223,6 +223,18 @@ void TextField::drawFrame(Graphics *graphics)
BLOCK_END("TextField::drawFrame")
}
+void TextField::safeDrawFrame(Graphics *graphics)
+{
+ BLOCK_START("TextField::drawFrame")
+ const int bs = 2 * mFrameSize;
+ graphics->drawImageRect(0,
+ 0,
+ mDimension.width + bs,
+ mDimension.height + bs,
+ skin);
+ BLOCK_END("TextField::drawFrame")
+}
+
void TextField::setNumeric(const bool numeric)
{
mNumeric = numeric;