From 3bb040043c0241f911aacc234bab16737b2e8f19 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sat, 12 Feb 2011 20:15:57 +0200 Subject: hopefully a fix for the majority of the windows 7 problems - thanks to zerochen --- src/guiPauseMenu.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/guiPauseMenu.cpp') diff --git a/src/guiPauseMenu.cpp b/src/guiPauseMenu.cpp index 5e2cd8c8e..99347b052 100644 --- a/src/guiPauseMenu.cpp +++ b/src/guiPauseMenu.cpp @@ -132,7 +132,7 @@ void GUIPauseMenu::regenerateGui(v2u32 screensize) max_texture_size = driver->getMaxTextureSize(); } - wchar_t text[200]; + /*wchar_t text[200]; swprintf(text, 200, L"Minetest-c55\n" L"by Perttu Ahola\n" @@ -143,9 +143,16 @@ void GUIPauseMenu::regenerateGui(v2u32 screensize) , BUILD_INFO, porting::path_userdata.c_str() - ); + );*/ + + std::ostringstream os; + os<<"Minetest-c55\n"; + os<<"by Perttu Ahola\n"; + os<<"celeron55@gmail.com\n"; + os<addStaticText(text, rect, false, true, this, 259); + Environment->addStaticText(narrow_to_wide(os.str()).c_str(), rect, false, true, this, 259); } } -- cgit v1.2.3