From 38158f663774a59cffb39ea0b9549a3855ed6749 Mon Sep 17 00:00:00 2001
From: Tom Grimshaw
Date: Tue, 8 Jun 2010 17:34:15 +0100
Subject: Implement UseKDUIfAvailable setting to specify if we will allow the
viewer to use the llkdu library if it exists
---
linden/indra/llimage/llimage.cpp | 7 +++++--
linden/indra/llimage/llimage.h | 2 +-
linden/indra/newview/app_settings/settings.xml | 11 +++++++++++
linden/indra/newview/llappviewer.cpp | 2 +-
4 files changed, 18 insertions(+), 4 deletions(-)
(limited to 'linden')
diff --git a/linden/indra/llimage/llimage.cpp b/linden/indra/llimage/llimage.cpp
index db983fb..b59c51b 100644
--- a/linden/indra/llimage/llimage.cpp
+++ b/linden/indra/llimage/llimage.cpp
@@ -55,10 +55,13 @@ std::string LLImage::sLastErrorMessage;
LLMutex* LLImage::sMutex = NULL;
//static
-void LLImage::initClass()
+void LLImage::initClass(const bool useDSO)
{
sMutex = new LLMutex(NULL);
- LLImageJ2C::openDSO();
+ if (useDSO)
+ {
+ LLImageJ2C::openDSO();
+ }
}
//static
diff --git a/linden/indra/llimage/llimage.h b/linden/indra/llimage/llimage.h
index 102e779..d01ae72 100644
--- a/linden/indra/llimage/llimage.h
+++ b/linden/indra/llimage/llimage.h
@@ -82,7 +82,7 @@ typedef enum e_image_codec
class LLImage
{
public:
- static void initClass();
+ static void initClass(const bool useDSO);
static void cleanupClass();
static const std::string& getLastError();
diff --git a/linden/indra/newview/app_settings/settings.xml b/linden/indra/newview/app_settings/settings.xml
index c1ed2b4..aa6b1fa 100644
--- a/linden/indra/newview/app_settings/settings.xml
+++ b/linden/indra/newview/app_settings/settings.xml
@@ -674,6 +674,17 @@
Value
f54a0c32-3cd1-d49a-5b4f-7b792bebc204
+ UseKDUIfAvailable
+
VerticalIMTabs