summaryrefslogtreecommitdiff
path: root/src/gui/widgets/textfield.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-25 22:07:05 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-25 22:07:05 +0300
commit2b681b167c1d307f550a8dc7b56a94d13886827e (patch)
tree8ab235ab55893ce4c97a34babd83d71750082de9 /src/gui/widgets/textfield.cpp
parent1f4410ab9ac4064ff0cfb0fd31b4e942bee82277 (diff)
downloadManaVerse-2b681b167c1d307f550a8dc7b56a94d13886827e.tar.gz
ManaVerse-2b681b167c1d307f550a8dc7b56a94d13886827e.tar.bz2
ManaVerse-2b681b167c1d307f550a8dc7b56a94d13886827e.tar.xz
ManaVerse-2b681b167c1d307f550a8dc7b56a94d13886827e.zip
Add method safeDrawFrame for safe OpenGL renderer.
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;