From: Kyle Date: Thu, 18 Oct 2012 19:06:47 +0000 (-0700) Subject: Allow transparent image_buttons X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=f9087d14a3655af0a8f47db819b1f9b5dcb9bd7f;p=zefram%2Fminetest%2Fminetest_engine.git Allow transparent image_buttons --- diff --git a/src/guiFormSpecMenu.cpp b/src/guiFormSpecMenu.cpp index ed44e441..9bdcdd5f 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);