diff options
| author | Erik Kundiman <erik@megapahit.org> | 2025-01-21 14:04:57 +0800 | 
|---|---|---|
| committer | Erik Kundiman <erik@megapahit.org> | 2025-01-21 14:04:57 +0800 | 
| commit | a314646f06b1a9f108b184d1074f6039405a522b (patch) | |
| tree | 8e01cd393bd5a4ad8dd3784a7c126f436d2c2b89 | |
| parent | ad3694fd4b6bfaf5621a12eb4536a1eb6a10f8f2 (diff) | |
| parent | 75e01f894d52f75c1a79746bf2d3294b3ca48afe (diff) | |
Merge remote-tracking branch 'secondlife/release/2024.12-ForeverFPS' into 2024.12-ForeverFPS
| -rw-r--r-- | indra/llui/llstyle.cpp | 7 | ||||
| -rw-r--r-- | indra/llui/llstyle.h | 1 | ||||
| -rw-r--r-- | indra/llui/lltextbase.cpp | 10 | ||||
| -rw-r--r-- | indra/llui/lltextbox.cpp | 3 | ||||
| -rw-r--r-- | indra/newview/llagent.cpp | 13 | ||||
| -rw-r--r-- | indra/newview/llfloaterimsessiontab.cpp | 3 | ||||
| -rw-r--r-- | indra/newview/llpanelmaininventory.cpp | 10 | ||||
| -rw-r--r-- | indra/newview/llviewercontrol.cpp | 4 | ||||
| -rw-r--r-- | indra/newview/llviewerparcelmgr.cpp | 10 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/en/menu_login.xml | 9 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/en/menu_viewer.xml | 9 | 
11 files changed, 47 insertions, 32 deletions
| diff --git a/indra/llui/llstyle.cpp b/indra/llui/llstyle.cpp index df4b0ef6a0..4714665e8b 100644 --- a/indra/llui/llstyle.cpp +++ b/indra/llui/llstyle.cpp @@ -39,7 +39,7 @@ LLStyle::Params::Params()      readonly_color("readonly_color", LLColor4::black),      selected_color("selected_color", LLColor4::black),      alpha("alpha", 1.f), -    font("font", LLFontGL::getFontMonospace()), +    font("font", LLStyle::getDefaultFont()),      image("image"),      link_href("href"),      is_link("is_link") @@ -70,6 +70,11 @@ const LLFontGL* LLStyle::getFont() const      return mFont;  } +const LLFontGL* LLStyle::getDefaultFont() +{ +    return LLFontGL::getFontMonospace(); +} +  void LLStyle::setLinkHREF(const std::string& href)  {      mLink = href; diff --git a/indra/llui/llstyle.h b/indra/llui/llstyle.h index e506895de5..0c78fe5a9f 100644 --- a/indra/llui/llstyle.h +++ b/indra/llui/llstyle.h @@ -72,6 +72,7 @@ public:      void setFont(const LLFontGL* font);      const LLFontGL* getFont() const; +    static const LLFontGL* getDefaultFont();      const std::string& getLinkHREF() const { return mLink; }      void setLinkHREF(const std::string& href); diff --git a/indra/llui/lltextbase.cpp b/indra/llui/lltextbase.cpp index cbbf83d679..fae22fd248 100644 --- a/indra/llui/lltextbase.cpp +++ b/indra/llui/lltextbase.cpp @@ -1438,7 +1438,8 @@ void LLTextBase::onVisibilityChange( bool new_visibility )  //virtual  void LLTextBase::setValue(const LLSD& value )  { -    setText(value.asString()); +    static const LLStyle::Params input_params = LLStyle::Params(); +    setText(value.asString(), input_params);  }  //virtual @@ -3880,8 +3881,7 @@ bool LLInlineViewSegment::getDimensionsF32(S32 first_char, S32 num_chars, F32& w          if (mForceNewLine)          {              // Chat, string can't be smaller then font height even if it is empty -            LLStyleSP s(new LLStyle(LLStyle::Params().visible(true))); -            height = s->getFont()->getLineHeight(); +            height = LLStyle::getDefaultFont()->getLineHeight();              return true; // new line          } @@ -3945,9 +3945,7 @@ void LLInlineViewSegment::linkToDocument(LLTextBase* editor)  LLLineBreakTextSegment::LLLineBreakTextSegment(S32 pos):LLTextSegment(pos,pos+1)  { -    LLStyleSP s( new LLStyle(LLStyle::Params().visible(true))); - -    mFontHeight = s->getFont()->getLineHeight(); +    mFontHeight = LLStyle::getDefaultFont()->getLineHeight();  }  LLLineBreakTextSegment::LLLineBreakTextSegment(LLStyleConstSP style,S32 pos):LLTextSegment(pos,pos+1)  { diff --git a/indra/llui/lltextbox.cpp b/indra/llui/lltextbox.cpp index 05af36b71e..9f945d3735 100644 --- a/indra/llui/lltextbox.cpp +++ b/indra/llui/lltextbox.cpp @@ -159,7 +159,8 @@ LLSD LLTextBox::getValue() const  bool LLTextBox::setTextArg( const std::string& key, const LLStringExplicit& text )  {      mText.setArg(key, text); -    LLTextBase::setText(mText.getString()); +    static const LLStyle::Params input_params = LLStyle::Params(); +    LLTextBase::setText(mText.getString(), input_params);      return true;  } diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp index 26c080bf89..8756baa04a 100644 --- a/indra/newview/llagent.cpp +++ b/indra/newview/llagent.cpp @@ -4879,10 +4879,19 @@ void LLAgent::parseTeleportMessages(const std::string& xml_filename)      LLXMLNodePtr root;      bool success = LLUICtrlFactory::getLayeredXMLNode(xml_filename, root); -    if (!success || !root || !root->hasName( "teleport_messages" )) +    if (!success)      { +        LLError::LLUserWarningMsg::showMissingFiles();          LL_ERRS() << "Problem reading teleport string XML file: " -               << xml_filename << LL_ENDL; +            << xml_filename << LL_ENDL; +        return; +    } + +    if (!root || !root->hasName("teleport_messages")) +    { +        LLError::LLUserWarningMsg::showMissingFiles(); +        LL_ERRS() << "Invalid teleport string XML file: " +            << xml_filename << LL_ENDL;          return;      } diff --git a/indra/newview/llfloaterimsessiontab.cpp b/indra/newview/llfloaterimsessiontab.cpp index 7b1c0ba5d4..335aba2cc9 100644 --- a/indra/newview/llfloaterimsessiontab.cpp +++ b/indra/newview/llfloaterimsessiontab.cpp @@ -634,7 +634,8 @@ void LLFloaterIMSessionTab::appendMessage(const LLChat& chat, const LLSD& args)      chat_args["show_names_for_p2p_conv"] = !mIsP2PChat ||              gSavedSettings.getBOOL("IMShowNamesForP2PConv"); -    mChatHistory->appendMessage(chat, chat_args); +    static const LLStyle::Params input_append_params = LLStyle::Params(); +    mChatHistory->appendMessage(chat, chat_args, input_append_params);  }  void LLFloaterIMSessionTab::updateUsedEmojis(LLWStringView text) diff --git a/indra/newview/llpanelmaininventory.cpp b/indra/newview/llpanelmaininventory.cpp index 377af4384a..a5b4db0580 100644 --- a/indra/newview/llpanelmaininventory.cpp +++ b/indra/newview/llpanelmaininventory.cpp @@ -2425,10 +2425,14 @@ void LLPanelMainInventory::updateCombinationVisibility()          mCombinationGalleryLayoutPanel->setVisible(!is_gallery_empty);          mCombinationListLayoutPanel->setVisible(show_inv_pane); -        mCombinationInventoryPanel->getRootFolder()->setForceArrange(!show_inv_pane); -        if(mCombinationInventoryPanel->hasVisibleItems()) +        LLFolderView* root_folder = mCombinationInventoryPanel->getRootFolder(); +        if (root_folder)          { -            mForceShowInvLayout = false; +            root_folder->setForceArrange(!show_inv_pane); +            if (mCombinationInventoryPanel->hasVisibleItems()) +            { +                mForceShowInvLayout = false; +            }          }          if(is_gallery_empty)          { diff --git a/indra/newview/llviewercontrol.cpp b/indra/newview/llviewercontrol.cpp index d4a033bd42..598ad89907 100644 --- a/indra/newview/llviewercontrol.cpp +++ b/indra/newview/llviewercontrol.cpp @@ -764,9 +764,9 @@ LLPointer<LLControlVariable> setting_get_control(LLControlGroup& group, const st      LLPointer<LLControlVariable> cntrl_ptr = group.getControl(setting);      if (cntrl_ptr.isNull())      { +        LLError::LLUserWarningMsg::showMissingFiles();          LL_ERRS() << "Unable to set up setting listener for " << setting -            << ". Please reinstall viewer from  https ://secondlife.com/support/downloads/ and contact https://support.secondlife.com if issue persists after reinstall." -            << LL_ENDL; +            << "." << LL_ENDL;      }      return cntrl_ptr;  } diff --git a/indra/newview/llviewerparcelmgr.cpp b/indra/newview/llviewerparcelmgr.cpp index 8c24b2438b..8e6657b4b9 100644 --- a/indra/newview/llviewerparcelmgr.cpp +++ b/indra/newview/llviewerparcelmgr.cpp @@ -1824,6 +1824,16 @@ void LLViewerParcelMgr::processParcelProperties(LLMessageSystem *msg, void **use                  S32 bitmap_size =   parcel_mgr.mParcelsPerEdge                                      * parcel_mgr.mParcelsPerEdge                                      / 8; +                S32 size = msg->getSizeFast(_PREHASH_ParcelData, _PREHASH_Bitmap); +                if (size != bitmap_size) +                { +                    // Might be better to ignore bitmap and drop highlights +                    LL_WARNS("ParcelMgr") << "Parcel Bitmap size expected: " << bitmap_size +                        << " actual " << size +                        << ". Bitmap might be corrupted!" << LL_ENDL; +                    bitmap_size = size; +                } +                  U8* bitmap = new U8[ bitmap_size ];                  msg->getBinaryDataFast(_PREHASH_ParcelData, _PREHASH_Bitmap, bitmap, bitmap_size); diff --git a/indra/newview/skins/default/xui/en/menu_login.xml b/indra/newview/skins/default/xui/en/menu_login.xml index 1d1b81e31a..5fff9b7bc0 100644 --- a/indra/newview/skins/default/xui/en/menu_login.xml +++ b/indra/newview/skins/default/xui/en/menu_login.xml @@ -95,18 +95,11 @@          </menu_item_call>          <menu_item_separator/>          <menu_item_call -             label="[SECOND_LIFE] News" -             name="Second Life News"> -             <menu_item_call.on_click -                 function="Advanced.ShowURL" -                 parameter="http://community.secondlife.com/t5/Featured-News/bg-p/blog_feature_news"/>   -        </menu_item_call> -        <menu_item_call               label="[SECOND_LIFE] Blogs"               name="Second Life Blogs">               <menu_item_call.on_click                   function="Advanced.ShowURL" -                 parameter="http://community.secondlife.com/t5/Blogs/ct-p/Blogs"/> +                 parameter="https://community.secondlife.com/news/"/>          </menu_item_call>          <menu_item_separator/>                 <menu_item_call diff --git a/indra/newview/skins/default/xui/en/menu_viewer.xml b/indra/newview/skins/default/xui/en/menu_viewer.xml index 977b225960..607c7698c3 100644 --- a/indra/newview/skins/default/xui/en/menu_viewer.xml +++ b/indra/newview/skins/default/xui/en/menu_viewer.xml @@ -1796,18 +1796,11 @@ function="World.EnvPreset"          </menu_item_call>          <menu_item_separator/>          <menu_item_call -             label="[SECOND_LIFE] News" -             name="Second Life News"> -             <menu_item_call.on_click -                 function="Advanced.ShowURL" -                 parameter="http://community.secondlife.com/t5/Featured-News/bg-p/blog_feature_news"/>   -        </menu_item_call> -        <menu_item_call               label="[SECOND_LIFE] Blogs"               name="Second Life Blogs">               <menu_item_call.on_click                   function="Advanced.ShowURL" -                 parameter="http://community.secondlife.com/t5/Blogs/ct-p/Blogs"/> +                 parameter="https://community.secondlife.com/news/"/>          </menu_item_call>          <menu_item_separator/> | 
