aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llwindow
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:48 -0500
committerJacek Antonelli2008-08-15 23:44:48 -0500
commit9b4f54c826ffa4f94efa866068c9d6ecdfb4b424 (patch)
tree2f8ae193ab487088962e628f1ee9dee2f5901f01 /linden/indra/llwindow
parentSecond Life viewer sources 1.13.2.12 (diff)
downloadmeta-impy-9b4f54c826ffa4f94efa866068c9d6ecdfb4b424.zip
meta-impy-9b4f54c826ffa4f94efa866068c9d6ecdfb4b424.tar.gz
meta-impy-9b4f54c826ffa4f94efa866068c9d6ecdfb4b424.tar.bz2
meta-impy-9b4f54c826ffa4f94efa866068c9d6ecdfb4b424.tar.xz
Second Life viewer sources 1.13.2.15
Diffstat (limited to '')
-rw-r--r--linden/indra/llwindow/llgl.cpp9
-rw-r--r--linden/indra/llwindow/llgl.h1
-rw-r--r--linden/indra/llwindow/llkeyboard.cpp1
-rw-r--r--linden/indra/llwindow/llkeyboardwin32.cpp1
-rw-r--r--linden/indra/llwindow/llwindowwin32.cpp37
5 files changed, 35 insertions, 14 deletions
diff --git a/linden/indra/llwindow/llgl.cpp b/linden/indra/llwindow/llgl.cpp
index 547a353..ec22907 100644
--- a/linden/indra/llwindow/llgl.cpp
+++ b/linden/indra/llwindow/llgl.cpp
@@ -365,6 +365,7 @@ bool LLGLManager::initGL()
365 // from being recognized as ATI. 365 // from being recognized as ATI.
366 if (mGLVendor.substr(0,4) == "ATI ") 366 if (mGLVendor.substr(0,4) == "ATI ")
367 { 367 {
368 mGLVendorShort = "ATI";
368 BOOL mobile = FALSE; 369 BOOL mobile = FALSE;
369 if (mGLRenderer.find("MOBILITY") != LLString::npos) 370 if (mGLRenderer.find("MOBILITY") != LLString::npos)
370 { 371 {
@@ -404,6 +405,7 @@ bool LLGLManager::initGL()
404 } 405 }
405 else if (mGLVendor.find("NVIDIA ") != LLString::npos) 406 else if (mGLVendor.find("NVIDIA ") != LLString::npos)
406 { 407 {
408 mGLVendorShort = "NVIDIA";
407 mIsNVIDIA = TRUE; 409 mIsNVIDIA = TRUE;
408 if ( mGLRenderer.find("GEFORCE4 MX") != LLString::npos 410 if ( mGLRenderer.find("GEFORCE4 MX") != LLString::npos
409 || mGLRenderer.find("GEFORCE2") != LLString::npos 411 || mGLRenderer.find("GEFORCE2") != LLString::npos
@@ -428,9 +430,14 @@ bool LLGLManager::initGL()
428 } 430 }
429 else if (mGLVendor.find("INTEL") != LLString::npos) 431 else if (mGLVendor.find("INTEL") != LLString::npos)
430 { 432 {
433 mGLVendorShort = "INTEL";
431 mIsIntel = TRUE; 434 mIsIntel = TRUE;
432 } 435 }
433 436 else
437 {
438 mGLVendorShort = "MISC";
439 }
440
434 // This is called here because it depends on the setting of mIsGF2or4MX, and sets up mHasMultitexture. 441 // This is called here because it depends on the setting of mIsGF2or4MX, and sets up mHasMultitexture.
435 initExtensions(); 442 initExtensions();
436 443
diff --git a/linden/indra/llwindow/llgl.h b/linden/indra/llwindow/llgl.h
index 1c93b63..c0668ca 100644
--- a/linden/indra/llwindow/llgl.h
+++ b/linden/indra/llwindow/llgl.h
@@ -125,6 +125,7 @@ public:
125 125
126 // In ALL CAPS 126 // In ALL CAPS
127 LLString mGLVendor; 127 LLString mGLVendor;
128 LLString mGLVendorShort;
128 129
129 // In ALL CAPS 130 // In ALL CAPS
130 LLString mGLRenderer; 131 LLString mGLRenderer;
diff --git a/linden/indra/llwindow/llkeyboard.cpp b/linden/indra/llwindow/llkeyboard.cpp
index fd6fcdc..409bb13 100644
--- a/linden/indra/llwindow/llkeyboard.cpp
+++ b/linden/indra/llwindow/llkeyboard.cpp
@@ -157,7 +157,6 @@ void LLKeyboard::resetKeys()
157 if( mKeyLevel[i] ) 157 if( mKeyLevel[i] )
158 { 158 {
159 mKeyLevel[i] = FALSE; 159 mKeyLevel[i] = FALSE;
160 mKeyLevelFrameCount[i] = 0;
161 } 160 }
162 } 161 }
163 162
diff --git a/linden/indra/llwindow/llkeyboardwin32.cpp b/linden/indra/llwindow/llkeyboardwin32.cpp
index 531ad87..e166ec2 100644
--- a/linden/indra/llwindow/llkeyboardwin32.cpp
+++ b/linden/indra/llwindow/llkeyboardwin32.cpp
@@ -266,7 +266,6 @@ void LLKeyboardWin32::scanKeyboard()
266 { 266 {
267 //llinfos << "Key up event missed, resetting" << llendl; 267 //llinfos << "Key up event missed, resetting" << llendl;
268 mKeyLevel[key] = FALSE; 268 mKeyLevel[key] = FALSE;
269 mKeyLevelFrameCount[key] = 0;
270 } 269 }
271 } 270 }
272 } 271 }
diff --git a/linden/indra/llwindow/llwindowwin32.cpp b/linden/indra/llwindow/llwindowwin32.cpp
index b405bdb..5929fb5 100644
--- a/linden/indra/llwindow/llwindowwin32.cpp
+++ b/linden/indra/llwindow/llwindowwin32.cpp
@@ -1969,19 +1969,34 @@ LRESULT CALLBACK LLWindowWin32::mainWindowProc(HWND h_wnd, UINT u_msg, WPARAM w_
1969 // allow system keys, such as ALT-F4 to be processed by Windows 1969 // allow system keys, such as ALT-F4 to be processed by Windows
1970 eat_keystroke = FALSE; 1970 eat_keystroke = FALSE;
1971 case WM_KEYDOWN: 1971 case WM_KEYDOWN:
1972 if (gDebugWindowProc)
1973 {
1974 llinfos << "Debug WindowProc WM_KEYDOWN "
1975 << " key " << S32(w_param)
1976 << llendl;
1977 }
1978 if (gKeyboard->handleKeyDown(w_param, mask) && eat_keystroke)
1979 { 1972 {
1980 return 0; 1973 if (gDebugWindowProc)
1974 {
1975 llinfos << "Debug WindowProc WM_KEYDOWN "
1976 << " key " << S32(w_param)
1977 << llendl;
1978 }
1979 // lower 15 bits hold key repeat count
1980 S32 key_repeat_count = l_param & 0x7fff;
1981 if (key_repeat_count > 1)
1982 {
1983 KEY translated_key;
1984 gKeyboard->translateKey(w_param, &translated_key);
1985 if (!gKeyboard->getKeyDown(translated_key))
1986 {
1987 //RN: hack for handling key repeats when we no longer recognize the key as being down
1988 //This is necessary because we sometimes ignore the message queue and use getAsyncKeyState
1989 // to clear key level flags before we've processed all key repeat messages
1990 return 0;
1991 }
1992 }
1993 if(gKeyboard->handleKeyDown(w_param, mask) && eat_keystroke)
1994 {
1995 return 0;
1996 }
1997 // pass on to windows if we didn't handle it
1998 break;
1981 } 1999 }
1982 // pass on to windows if we didn't handle it
1983 break;
1984
1985 case WM_SYSKEYUP: 2000 case WM_SYSKEYUP:
1986 eat_keystroke = FALSE; 2001 eat_keystroke = FALSE;
1987 case WM_KEYUP: 2002 case WM_KEYUP: