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/dropdown.cpp | |
parent | 1f4410ab9ac4064ff0cfb0fd31b4e942bee82277 (diff) | |
download | manaplus-2b681b167c1d307f550a8dc7b56a94d13886827e.tar.gz manaplus-2b681b167c1d307f550a8dc7b56a94d13886827e.tar.bz2 manaplus-2b681b167c1d307f550a8dc7b56a94d13886827e.tar.xz manaplus-2b681b167c1d307f550a8dc7b56a94d13886827e.zip |
Add method safeDrawFrame for safe OpenGL renderer.
Diffstat (limited to 'src/gui/widgets/dropdown.cpp')
-rw-r--r-- | src/gui/widgets/dropdown.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gui/widgets/dropdown.cpp b/src/gui/widgets/dropdown.cpp index ddd409c3a..a16381c2a 100644 --- a/src/gui/widgets/dropdown.cpp +++ b/src/gui/widgets/dropdown.cpp @@ -305,6 +305,17 @@ void DropDown::drawFrame(Graphics *graphics) BLOCK_END("DropDown::drawFrame") } +void DropDown::safeDrawFrame(Graphics *graphics) +{ + BLOCK_START("DropDown::drawFrame") + const int bs2 = getFrameSize(); + const Rect &rect = mDimension; + graphics->drawImageRect(0, 0, + rect.width + bs2, rect.height + bs2, + skinRect); + BLOCK_END("DropDown::drawFrame") +} + void DropDown::drawButton(Graphics *graphics) { const int height = mDroppedDown ? mFoldedUpHeight : mDimension.height; |