diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-12-21 20:16:36 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-12-21 20:16:36 +0300 |
commit | 80f7177ea4ce0185e1ef3355e91dcf14617d0f09 (patch) | |
tree | 78e8453d25645b85f2610a504b4a248acee5fb9c /src/gui/widgets/dropdown.cpp | |
parent | c5327f3b1d10171ff2a97546ea49e350b1725c24 (diff) | |
parent | 0dd6ab2bfdee4527ca0960b4e7a64e257bb93fa3 (diff) | |
download | plus-80f7177ea4ce0185e1ef3355e91dcf14617d0f09.tar.gz plus-80f7177ea4ce0185e1ef3355e91dcf14617d0f09.tar.bz2 plus-80f7177ea4ce0185e1ef3355e91dcf14617d0f09.tar.xz plus-80f7177ea4ce0185e1ef3355e91dcf14617d0f09.zip |
Merge branch 'master' into stable
Diffstat (limited to 'src/gui/widgets/dropdown.cpp')
-rw-r--r-- | src/gui/widgets/dropdown.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/widgets/dropdown.cpp b/src/gui/widgets/dropdown.cpp index 7c41bbacc..0cfcb2a6f 100644 --- a/src/gui/widgets/dropdown.cpp +++ b/src/gui/widgets/dropdown.cpp @@ -52,8 +52,8 @@ static std::string const dropdownFiles[2] = DropDown::DropDown(const Widget2 *const widget, gcn::ListModel *const listModel, - bool extended, - bool modal, + const bool extended, + const bool modal, gcn::ActionListener *const listener, const std::string &eventId): gcn::ActionListener(), @@ -250,7 +250,7 @@ void DropDown::draw(gcn::Graphics* graphics) } else { - static_cast<Graphics*>(graphics)->drawImage( + DRAW_IMAGE(static_cast<Graphics*>(graphics), image, mImagePadding, (mDimension.height - image->getHeight()) / 2 + mPadding); font->drawString(graphics, model->getElementAt(sel), @@ -303,7 +303,7 @@ void DropDown::drawButton(gcn::Graphics *graphics) Image *image = buttons[mDroppedDown][mPushed]; if (image) { - static_cast<Graphics*>(graphics)->drawImage(image, + DRAW_IMAGE(static_cast<Graphics*>(graphics), image, mDimension.width - image->getWidth() - mImagePadding, (height - image->getHeight()) / 2); } |