diff options
author | McCabe Maxsted | 2010-06-06 06:14:18 -0700 |
---|---|---|
committer | Jacek Antonelli | 2010-06-19 02:43:32 -0500 |
commit | 35af28cec1c16e66da3abff4d75a8a68dc381a72 (patch) | |
tree | e183627295f62f1d6564211f3f98db8984089067 /linden/indra/llwindow/llwindowwin32.cpp | |
parent | Removed 'Received animation state for unknown avatar' log spam (diff) | |
download | meta-impy-35af28cec1c16e66da3abff4d75a8a68dc381a72.zip meta-impy-35af28cec1c16e66da3abff4d75a8a68dc381a72.tar.gz meta-impy-35af28cec1c16e66da3abff4d75a8a68dc381a72.tar.bz2 meta-impy-35af28cec1c16e66da3abff4d75a8a68dc381a72.tar.xz |
Applied snowglobe-0-v14000-AvatarNameInWindowTitle_v1.patch and set the name in the window title only when running multiple instances
Diffstat (limited to 'linden/indra/llwindow/llwindowwin32.cpp')
-rw-r--r-- | linden/indra/llwindow/llwindowwin32.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/linden/indra/llwindow/llwindowwin32.cpp b/linden/indra/llwindow/llwindowwin32.cpp index b2826c8..e47cab4 100644 --- a/linden/indra/llwindow/llwindowwin32.cpp +++ b/linden/indra/llwindow/llwindowwin32.cpp | |||
@@ -622,6 +622,17 @@ LLWindowWin32::~LLWindowWin32() | |||
622 | mWindowClassName = NULL; | 622 | mWindowClassName = NULL; |
623 | } | 623 | } |
624 | 624 | ||
625 | void LLWindowWin32::setWindowTitle(std::string &title) | ||
626 | { | ||
627 | int len = title.size() + 1; | ||
628 | wchar_t *wText = new wchar_t[len]; | ||
629 | if (wText == 0) return; | ||
630 | memset(wText, 0, len); | ||
631 | MultiByteToWideChar(CP_ACP, NULL, title.c_str(), -1, wText, len); | ||
632 | SetWindowText(mWindowHandle, wText); | ||
633 | delete [] wText; | ||
634 | } | ||
635 | |||
625 | void LLWindowWin32::show() | 636 | void LLWindowWin32::show() |
626 | { | 637 | { |
627 | ShowWindow(mWindowHandle, SW_SHOW); | 638 | ShowWindow(mWindowHandle, SW_SHOW); |