aboutsummaryrefslogtreecommitdiff
path: root/src/guiFormSpecMenu.cpp
diff options
context:
space:
mode:
authorKyle <kyle.kylina@gmail.com>2012-10-18 12:06:47 -0700
committerKyle <kyle.kylina@gmail.com>2012-10-18 12:06:47 -0700
commitf9087d14a3655af0a8f47db819b1f9b5dcb9bd7f (patch)
treed460526c2cba829b40ab3c86361010687dc4d00f /src/guiFormSpecMenu.cpp
parent25cf3757b29a0397e201a4719788ead3dc76ec94 (diff)
downloadminetest-f9087d14a3655af0a8f47db819b1f9b5dcb9bd7f.tar.gz
minetest-f9087d14a3655af0a8f47db819b1f9b5dcb9bd7f.tar.bz2
minetest-f9087d14a3655af0a8f47db819b1f9b5dcb9bd7f.zip
Allow transparent image_buttons
Diffstat (limited to 'src/guiFormSpecMenu.cpp')
-rw-r--r--src/guiFormSpecMenu.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/guiFormSpecMenu.cpp b/src/guiFormSpecMenu.cpp
index ed44e441b..9bdcdd5fb 100644
--- a/src/guiFormSpecMenu.cpp
+++ b/src/guiFormSpecMenu.cpp
@@ -458,6 +458,7 @@ void GUIFormSpecMenu::regenerateGui(v2u32 screensize)
video::ITexture *texture = m_gamedef->tsrc()->getTextureRaw(fimage);
gui::IGUIButton *e = Environment->addButton(rect, this, spec.fid, spec.flabel.c_str());
+ e->setUseAlphaChannel(true);
e->setImage(texture);
e->setPressedImage(texture);
e->setScaleImage(true);