From 2b681b167c1d307f550a8dc7b56a94d13886827e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 25 May 2015 22:07:05 +0300 Subject: Add method safeDrawFrame for safe OpenGL renderer. --- src/gui/widgets/dropdown.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/gui/widgets/dropdown.cpp') 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; -- cgit v1.2.3-70-g09d2