aboutsummaryrefslogtreecommitdiff
path: root/src/gui/guiButtonItemImage.cpp
diff options
context:
space:
mode:
authorElias Fleckenstein <54945686+EliasFleckenstein03@users.noreply.github.com>2020-11-04 16:44:42 +0100
committerGitHub <noreply@github.com>2020-11-04 16:44:42 +0100
commit5d9ae5a91c544fc7fbd475decf47cef7e09ef8fc (patch)
treec980d614fec4a5495798be3e79e033229062c3cd /src/gui/guiButtonItemImage.cpp
parent28f6a79706b088c37268a59d90878220dc4ef9c7 (diff)
parent3af10766fd2b58b068e970266724d7eb10e9316b (diff)
downloaddragonfireclient-5d9ae5a91c544fc7fbd475decf47cef7e09ef8fc.tar.xz
Merge branch 'master' into master
Diffstat (limited to 'src/gui/guiButtonItemImage.cpp')
-rw-r--r--src/gui/guiButtonItemImage.cpp11
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);