projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25cf375
)
Allow transparent image_buttons
author
Kyle
<kyle.kylina@gmail.com>
Thu, 18 Oct 2012 19:06:47 +0000
(12:06 -0700)
committer
Kyle
<kyle.kylina@gmail.com>
Thu, 18 Oct 2012 19:06:47 +0000
(12:06 -0700)
src/guiFormSpecMenu.cpp
patch
|
blob
|
history
diff --git
a/src/guiFormSpecMenu.cpp
b/src/guiFormSpecMenu.cpp
index ed44e441b4c562e29761165d97b18a86e7413ba1..9bdcdd5fbdc23d1b6d8d5cf695f21add25adbdea 100644
(file)
--- 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);