diff options
Diffstat (limited to 'linden/indra/newview/llviewerwindow.cpp')
-rw-r--r-- | linden/indra/newview/llviewerwindow.cpp | 31 |
1 files changed, 22 insertions, 9 deletions
diff --git a/linden/indra/newview/llviewerwindow.cpp b/linden/indra/newview/llviewerwindow.cpp index f17d031..c0e4fed 100644 --- a/linden/indra/newview/llviewerwindow.cpp +++ b/linden/indra/newview/llviewerwindow.cpp | |||
@@ -513,7 +513,7 @@ public: | |||
513 | ypos += y_inc; | 513 | ypos += y_inc; |
514 | } | 514 | } |
515 | // only display these messages if we are actually rendering beacons at this moment | 515 | // only display these messages if we are actually rendering beacons at this moment |
516 | if (LLPipeline::getRenderBeacons(NULL) && gSavedSettings.getBOOL("BeaconAlwaysOn")) | 516 | if (LLPipeline::getRenderBeacons(NULL) && gSavedSettings.getBOOL("BeaconsEnabled")) |
517 | { | 517 | { |
518 | if (LLPipeline::getRenderParticleBeacons(NULL)) | 518 | if (LLPipeline::getRenderParticleBeacons(NULL)) |
519 | { | 519 | { |
@@ -2409,14 +2409,6 @@ BOOL LLViewerWindow::handleKey(KEY key, MASK mask) | |||
2409 | } | 2409 | } |
2410 | 2410 | ||
2411 | // Explicit hack for debug menu. | 2411 | // Explicit hack for debug menu. |
2412 | if ((MASK_ALT & mask) && | ||
2413 | (MASK_CONTROL & mask) && | ||
2414 | ('D' == key || 'd' == key)) | ||
2415 | { | ||
2416 | toggle_debug_menus(NULL); | ||
2417 | } | ||
2418 | |||
2419 | // Explicit hack for debug menu. | ||
2420 | if ((mask == (MASK_SHIFT | MASK_CONTROL)) && | 2412 | if ((mask == (MASK_SHIFT | MASK_CONTROL)) && |
2421 | ('G' == key || 'g' == key)) | 2413 | ('G' == key || 'g' == key)) |
2422 | { | 2414 | { |
@@ -4713,6 +4705,27 @@ void LLViewerWindow::initFonts(F32 zoom_factor) | |||
4713 | gDirUtilp->getAppRODataDir(), | 4705 | gDirUtilp->getAppRODataDir(), |
4714 | LLUICtrlFactory::getXUIPaths()); | 4706 | LLUICtrlFactory::getXUIPaths()); |
4715 | } | 4707 | } |
4708 | |||
4709 | |||
4710 | void LLViewerWindow::toggleFullscreenConfirm() | ||
4711 | { | ||
4712 | gViewerWindow->alertXml("ConfirmToggleFullscreen", | ||
4713 | LLViewerWindow::toggleFullscreenCallback, | ||
4714 | (void *)this); | ||
4715 | } | ||
4716 | |||
4717 | |||
4718 | // static | ||
4719 | void LLViewerWindow::toggleFullscreenCallback(S32 option, void *userdata) | ||
4720 | { | ||
4721 | if( option == 0 ) | ||
4722 | { | ||
4723 | // User confirmed it. Here we go! | ||
4724 | ((LLViewerWindow *)userdata)->toggleFullscreen( TRUE ); | ||
4725 | } | ||
4726 | } | ||
4727 | |||
4728 | |||
4716 | void LLViewerWindow::toggleFullscreen(BOOL show_progress) | 4729 | void LLViewerWindow::toggleFullscreen(BOOL show_progress) |
4717 | { | 4730 | { |
4718 | if (mWindow) | 4731 | if (mWindow) |