diff options
Diffstat (limited to 'linden/indra/newview/llpaneldisplay.cpp')
-rw-r--r-- | linden/indra/newview/llpaneldisplay.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/linden/indra/newview/llpaneldisplay.cpp b/linden/indra/newview/llpaneldisplay.cpp index d22d1c2..d79dcb4 100644 --- a/linden/indra/newview/llpaneldisplay.cpp +++ b/linden/indra/newview/llpaneldisplay.cpp | |||
@@ -448,7 +448,6 @@ LLPanelDisplay2::LLPanelDisplay2() | |||
448 | 448 | ||
449 | BOOL LLPanelDisplay2::postBuild() | 449 | BOOL LLPanelDisplay2::postBuild() |
450 | { | 450 | { |
451 | |||
452 | requires("ani", WIDGET_TYPE_CHECKBOX); | 451 | requires("ani", WIDGET_TYPE_CHECKBOX); |
453 | requires("gamma", WIDGET_TYPE_SPINNER); | 452 | requires("gamma", WIDGET_TYPE_SPINNER); |
454 | requires("vbo", WIDGET_TYPE_CHECKBOX); | 453 | requires("vbo", WIDGET_TYPE_CHECKBOX); |
@@ -466,6 +465,14 @@ BOOL LLPanelDisplay2::postBuild() | |||
466 | // Graphics Card Memory | 465 | // Graphics Card Memory |
467 | mRadioVideoCardMem = LLUICtrlFactory::getRadioGroupByName(this, "video card memory radio"); | 466 | mRadioVideoCardMem = LLUICtrlFactory::getRadioGroupByName(this, "video card memory radio"); |
468 | 467 | ||
468 | #if !LL_WINDOWS | ||
469 | // The probe_hardware_checkbox setting is only used in the Windows build | ||
470 | // (It apparently controls a time-consuming DX9 hardware probe.) | ||
471 | // Disable the checkbox everywhere else | ||
472 | gSavedSettings.setBOOL("ProbeHardwareOnStartup", FALSE ); | ||
473 | childSetEnabled("probe_hardware_checkbox", false); | ||
474 | #endif // !LL_WINDOWS | ||
475 | |||
469 | refresh(); | 476 | refresh(); |
470 | 477 | ||
471 | return TRUE; | 478 | return TRUE; |
@@ -490,7 +497,8 @@ void LLPanelDisplay2::refresh() | |||
490 | mParticleCount = gSavedSettings.getS32("RenderMaxPartCount"); | 497 | mParticleCount = gSavedSettings.getS32("RenderMaxPartCount"); |
491 | mCompositeLimit = gSavedSettings.getS32("AvatarCompositeLimit"); | 498 | mCompositeLimit = gSavedSettings.getS32("AvatarCompositeLimit"); |
492 | mDebugBeaconLineWidth = gSavedSettings.getS32("DebugBeaconLineWidth"); | 499 | mDebugBeaconLineWidth = gSavedSettings.getS32("DebugBeaconLineWidth"); |
493 | 500 | mProbeHardwareOnStartup = gSavedSettings.getBOOL("ProbeHardwareOnStartup"); | |
501 | |||
494 | refreshEnabledState(); | 502 | refreshEnabledState(); |
495 | } | 503 | } |
496 | 504 | ||
@@ -521,7 +529,6 @@ void LLPanelDisplay2::apply() | |||
521 | gViewerWindow->restartDisplay(logged_in); | 529 | gViewerWindow->restartDisplay(logged_in); |
522 | } | 530 | } |
523 | 531 | ||
524 | |||
525 | refresh(); | 532 | refresh(); |
526 | } | 533 | } |
527 | 534 | ||
@@ -537,6 +544,7 @@ void LLPanelDisplay2::cancel() | |||
537 | gSavedSettings.setS32("RenderMaxPartCount", mParticleCount); | 544 | gSavedSettings.setS32("RenderMaxPartCount", mParticleCount); |
538 | gSavedSettings.setS32("AvatarCompositeLimit", mCompositeLimit); | 545 | gSavedSettings.setS32("AvatarCompositeLimit", mCompositeLimit); |
539 | gSavedSettings.setS32("DebugBeaconLineWidth", mDebugBeaconLineWidth); | 546 | gSavedSettings.setS32("DebugBeaconLineWidth", mDebugBeaconLineWidth); |
547 | gSavedSettings.setBOOL("ProbeHardwareOnStartup", mProbeHardwareOnStartup ); | ||
540 | } | 548 | } |
541 | 549 | ||
542 | //============================================================================ | 550 | //============================================================================ |