summaryrefslogtreecommitdiff
path: root/indra/llwindow/llwindowwin32.cpp
diff options
context:
space:
mode:
authorCallum Linden <callum@lindenlab.com>2021-09-28 15:24:42 -0700
committerCallum Linden <callum@lindenlab.com>2021-09-28 15:24:42 -0700
commit851fef680164e3472b0516e7237bbcc4a35bc5a3 (patch)
tree90e25cd4cdc3427e27638eb3032d06f723b3db87 /indra/llwindow/llwindowwin32.cpp
parentdc48e174c43edb770f3c2de0ac16adee5841d7ec (diff)
SL-16102 Set window title to agent name (child of SL-15999 Support for low overhead, non interactive viewer sessions)
Diffstat (limited to 'indra/llwindow/llwindowwin32.cpp')
-rw-r--r--indra/llwindow/llwindowwin32.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/llwindow/llwindowwin32.cpp b/indra/llwindow/llwindowwin32.cpp
index b2b123f0da..dc3e77cc57 100644
--- a/indra/llwindow/llwindowwin32.cpp
+++ b/indra/llwindow/llwindowwin32.cpp
@@ -1811,6 +1811,13 @@ void LLWindowWin32::moveWindow( const LLCoordScreen& position, const LLCoordScre
MoveWindow(mWindowHandle, position.mX, position.mY, size.mX, size.mY, TRUE);
}
+void LLWindowWin32::setTitle(const std::string title)
+{
+ // TODO: Do we need to use the wide string version of this call
+ // to support non-ascii usernames (and region names??)
+ SetWindowTextA(mWindowHandle, title.c_str());
+}
+
BOOL LLWindowWin32::setCursorPosition(const LLCoordWindow position)
{
mMousePositionModified = TRUE;