diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-25 22:07:05 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-25 22:07:05 +0300 |
commit | 2b681b167c1d307f550a8dc7b56a94d13886827e (patch) | |
tree | 8ab235ab55893ce4c97a34babd83d71750082de9 /src/gui/widgets/textfield.cpp | |
parent | 1f4410ab9ac4064ff0cfb0fd31b4e942bee82277 (diff) | |
download | mv-2b681b167c1d307f550a8dc7b56a94d13886827e.tar.gz mv-2b681b167c1d307f550a8dc7b56a94d13886827e.tar.bz2 mv-2b681b167c1d307f550a8dc7b56a94d13886827e.tar.xz mv-2b681b167c1d307f550a8dc7b56a94d13886827e.zip |
Add method safeDrawFrame for safe OpenGL renderer.
Diffstat (limited to 'src/gui/widgets/textfield.cpp')
-rw-r--r-- | src/gui/widgets/textfield.cpp | 12 |
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; |