diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llwebbrowserctrl.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/linden/indra/newview/llwebbrowserctrl.cpp b/linden/indra/newview/llwebbrowserctrl.cpp index c4a2b2b..7a9194c 100644 --- a/linden/indra/newview/llwebbrowserctrl.cpp +++ b/linden/indra/newview/llwebbrowserctrl.cpp | |||
@@ -4,7 +4,7 @@ | |||
4 | * | 4 | * |
5 | * $LicenseInfo:firstyear=2006&license=viewergpl$ | 5 | * $LicenseInfo:firstyear=2006&license=viewergpl$ |
6 | * | 6 | * |
7 | * Copyright (c) 2006-2008, Linden Research, Inc. | 7 | * Copyright (c) 2006-2009, Linden Research, Inc. |
8 | * | 8 | * |
9 | * Second Life Viewer Source Code | 9 | * Second Life Viewer Source Code |
10 | * The source code in this file ("Source Code") is provided by Linden Lab | 10 | * The source code in this file ("Source Code") is provided by Linden Lab |
@@ -483,13 +483,7 @@ void LLWebBrowserCtrl::navigateTo( std::string urlIn ) | |||
483 | 483 | ||
484 | void LLWebBrowserCtrl::navigateToLocalPage( const std::string& subdir, const std::string& filename_in ) | 484 | void LLWebBrowserCtrl::navigateToLocalPage( const std::string& subdir, const std::string& filename_in ) |
485 | { | 485 | { |
486 | std::string language = gSavedSettings.getString("Language"); | 486 | std::string language = LLUI::getLanguage(); |
487 | |||
488 | if(language == "default") | ||
489 | { | ||
490 | language = gSavedSettings.getString("SystemLanguage"); | ||
491 | } | ||
492 | |||
493 | std::string delim = gDirUtilp->getDirDelimiter(); | 487 | std::string delim = gDirUtilp->getDirDelimiter(); |
494 | std::string filename; | 488 | std::string filename; |
495 | 489 | ||
@@ -596,14 +590,14 @@ void LLWebBrowserCtrl::draw() | |||
596 | } | 590 | } |
597 | 591 | ||
598 | // scale texture to fit the space using texture coords | 592 | // scale texture to fit the space using texture coords |
599 | mWebBrowserImage->bindTexture(); | 593 | gGL.getTexUnit(0)->bind(mWebBrowserImage->getTexture()); |
600 | gGL.color4fv( LLColor4::white.mV ); | 594 | gGL.color4fv( LLColor4::white.mV ); |
601 | F32 max_u = ( F32 )mWebBrowserImage->getBrowserWidth() / ( F32 )mWebBrowserImage->getWidth(); | 595 | F32 max_u = ( F32 )mWebBrowserImage->getBrowserWidth() / ( F32 )mWebBrowserImage->getWidth(); |
602 | F32 max_v = ( F32 )mWebBrowserImage->getBrowserHeight() / ( F32 )mWebBrowserImage->getHeight(); | 596 | F32 max_v = ( F32 )mWebBrowserImage->getBrowserHeight() / ( F32 )mWebBrowserImage->getHeight(); |
603 | 597 | ||
604 | // draw the browser | 598 | // draw the browser |
605 | gGL.setSceneBlendType(LLRender::BT_REPLACE); | 599 | gGL.setSceneBlendType(LLRender::BT_REPLACE); |
606 | gGL.begin( LLVertexBuffer::QUADS ); | 600 | gGL.begin( LLRender::QUADS ); |
607 | { | 601 | { |
608 | // render using web browser reported width and height, instead of trying to invert GL scale | 602 | // render using web browser reported width and height, instead of trying to invert GL scale |
609 | gGL.texCoord2f( max_u, max_v ); | 603 | gGL.texCoord2f( max_u, max_v ); |