diff options
author | Weblate <42@minetest.ru> | 2013-04-18 20:00:16 +0200 |
---|---|---|
committer | Weblate <42@minetest.ru> | 2013-04-18 20:00:16 +0200 |
commit | 9e6376bd95ba9309365b39b878ab2f499776437a (patch) | |
tree | a354a250daedf036cc36e33d3d1ebb9fafc4ac27 /src/guiVolumeChange.cpp | |
parent | e385af7cc01d156164b85d10b00a7047a5372e66 (diff) | |
parent | e60eb32050a44d344795e4a1515a56038bb97e02 (diff) | |
download | minetest-9e6376bd95ba9309365b39b878ab2f499776437a.tar.gz minetest-9e6376bd95ba9309365b39b878ab2f499776437a.tar.bz2 minetest-9e6376bd95ba9309365b39b878ab2f499776437a.zip |
Merge remote branch 'origin/master'
Diffstat (limited to 'src/guiVolumeChange.cpp')
-rw-r--r-- | src/guiVolumeChange.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/guiVolumeChange.cpp b/src/guiVolumeChange.cpp index cfb89da1c..4e92b82c2 100644 --- a/src/guiVolumeChange.cpp +++ b/src/guiVolumeChange.cpp @@ -105,8 +105,10 @@ void GUIVolumeChange::regenerateGui(v2u32 screensize) { core::rect<s32> rect(0, 0, 120, 20); rect = rect + v2s32(size.X/2-60, size.Y/2-35); - Environment->addStaticText(wgettext("Sound Volume: "), rect, false, + wchar_t* text = wgettext("Sound Volume: "); + Environment->addStaticText(text, rect, false, true, this, ID_soundText1); + delete[] text; } { core::rect<s32> rect(0, 0, 30, 20); @@ -117,8 +119,10 @@ void GUIVolumeChange::regenerateGui(v2u32 screensize) { core::rect<s32> rect(0, 0, 80, 30); rect = rect + v2s32(size.X/2-80/2, size.Y/2+55); + wchar_t* text = wgettext("Exit"); Environment->addButton(rect, this, ID_soundExitButton, - wgettext("Exit")); + text); + delete[] text; } { core::rect<s32> rect(0, 0, 300, 20); |