diff options
author | sfan5 <sfan5@live.de> | 2021-05-25 21:03:51 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2021-05-30 11:40:14 +0200 |
commit | 758e3aa1ca541c99e8c7824a2465b3bda7394d20 (patch) | |
tree | 87932cd17e55da67c272cabbfa94fa1cf91aa840 /src | |
parent | a0047d6edcb300afeca16a2a63c5a112082736f3 (diff) | |
download | minetest-758e3aa1ca541c99e8c7824a2465b3bda7394d20.tar.gz minetest-758e3aa1ca541c99e8c7824a2465b3bda7394d20.tar.bz2 minetest-758e3aa1ca541c99e8c7824a2465b3bda7394d20.zip |
Fix background color of formspec text fields
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/guiFormSpecMenu.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gui/guiFormSpecMenu.cpp b/src/gui/guiFormSpecMenu.cpp index c6435804f..09b004f8f 100644 --- a/src/gui/guiFormSpecMenu.cpp +++ b/src/gui/guiFormSpecMenu.cpp @@ -1577,11 +1577,10 @@ void GUIFormSpecMenu::createTextField(parserData *data, FieldSpec &spec, } e->setNotClipped(style.getBool(StyleSpec::NOCLIP, false)); - e->setDrawBorder(style.getBool(StyleSpec::BORDER, true)); e->setOverrideColor(style.getColor(StyleSpec::TEXTCOLOR, video::SColor(0xFFFFFFFF))); - if (style.get(StyleSpec::BGCOLOR, "") == "transparent") { - e->setDrawBackground(false); - } + bool border = style.getBool(StyleSpec::BORDER, true); + e->setDrawBorder(border); + e->setDrawBackground(border); e->setOverrideFont(style.getFont()); e->drop(); |