diff options
Diffstat (limited to 'src/gui/guiButtonItemImage.cpp')
-rw-r--r-- | src/gui/guiButtonItemImage.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gui/guiButtonItemImage.cpp b/src/gui/guiButtonItemImage.cpp index d8b9042ac..bbd20582b 100644 --- a/src/gui/guiButtonItemImage.cpp +++ b/src/gui/guiButtonItemImage.cpp @@ -31,11 +31,12 @@ using namespace gui; GUIButtonItemImage::GUIButtonItemImage(gui::IGUIEnvironment *environment, gui::IGUIElement *parent, s32 id, core::rect<s32> rectangle, ISimpleTextureSource *tsrc, std::string item, Client *client, - bool noclip) - : GUIButton (environment, parent, id, rectangle, tsrc, noclip) + bool noclip) : + GUIButton(environment, parent, id, rectangle, tsrc, noclip) { m_image = new GUIItemImage(environment, this, id, - core::rect<s32>(0,0,rectangle.getWidth(),rectangle.getHeight()), + core::rect<s32>(0, 0, rectangle.getWidth(), + rectangle.getHeight()), item, getActiveFont(), client); sendToBack(m_image); @@ -49,8 +50,8 @@ GUIButtonItemImage *GUIButtonItemImage::addButton(IGUIEnvironment *environment, Client *client) { GUIButtonItemImage *button = new GUIButtonItemImage(environment, - parent ? parent : environment->getRootGUIElement(), - id, rectangle, tsrc, item, client); + parent ? parent : environment->getRootGUIElement(), id, rectangle, + tsrc, item, client); if (text) button->setText(text); |