From: Kyle Date: Thu, 18 Oct 2012 19:06:47 +0000 (-0700) Subject: Allow transparent image_buttons X-Git-Tag: 0.4.4~82^2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f9087d14a3655af0a8f47db819b1f9b5dcb9bd7f;p=oweals%2Fminetest.git Allow transparent image_buttons --- 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);