aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewerwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llviewerwindow.cpp')
-rw-r--r--linden/indra/newview/llviewerwindow.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/linden/indra/newview/llviewerwindow.cpp b/linden/indra/newview/llviewerwindow.cpp
index 017c225..443bbd5 100644
--- a/linden/indra/newview/llviewerwindow.cpp
+++ b/linden/indra/newview/llviewerwindow.cpp
@@ -4668,6 +4668,27 @@ void LLViewerWindow::initFonts(F32 zoom_factor)
4668 gDirUtilp->getAppRODataDir() 4668 gDirUtilp->getAppRODataDir()
4669 ); 4669 );
4670} 4670}
4671
4672
4673void LLViewerWindow::toggleFullscreenConfirm()
4674{
4675 gViewerWindow->alertXml("ConfirmToggleFullscreen",
4676 LLViewerWindow::toggleFullscreenCallback,
4677 (void *)this);
4678}
4679
4680
4681// static
4682void LLViewerWindow::toggleFullscreenCallback(S32 option, void *userdata)
4683{
4684 if( option == 0 )
4685 {
4686 // User confirmed it. Here we go!
4687 ((LLViewerWindow *)userdata)->toggleFullscreen( TRUE );
4688 }
4689}
4690
4691
4671void LLViewerWindow::toggleFullscreen(BOOL show_progress) 4692void LLViewerWindow::toggleFullscreen(BOOL show_progress)
4672{ 4693{
4673 if (mWindow) 4694 if (mWindow)