aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui/llmenugl.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:56 -0500
committerJacek Antonelli2008-08-15 23:44:56 -0500
commitc07901e29ed545bbb02e3bddf148fe1104b94e9f (patch)
treef1ada64ce834acd7d92a425efb96c4b86bcf16b1 /linden/indra/llui/llmenugl.cpp
parentSecond Life viewer sources 1.15.0.2 (diff)
downloadmeta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.zip
meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.gz
meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.bz2
meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.xz
Second Life viewer sources 1.15.1.3
Diffstat (limited to 'linden/indra/llui/llmenugl.cpp')
-rw-r--r--linden/indra/llui/llmenugl.cpp20
1 files changed, 12 insertions, 8 deletions
diff --git a/linden/indra/llui/llmenugl.cpp b/linden/indra/llui/llmenugl.cpp
index 1920aac..9530f26 100644
--- a/linden/indra/llui/llmenugl.cpp
+++ b/linden/indra/llui/llmenugl.cpp
@@ -517,7 +517,7 @@ void LLMenuItemGL::draw( void )
517 U8 font_style = mStyle; 517 U8 font_style = mStyle;
518 if (LLMenuItemGL::sDropShadowText && getEnabled() && !mDrawTextDisabled ) 518 if (LLMenuItemGL::sDropShadowText && getEnabled() && !mDrawTextDisabled )
519 { 519 {
520 font_style |= LLFontGL::DROP_SHADOW; 520 font_style |= LLFontGL::DROP_SHADOW_SOFT;
521 } 521 }
522 522
523 if ( getEnabled() && getHighlight() ) 523 if ( getEnabled() && getHighlight() )
@@ -729,14 +729,18 @@ void LLMenuItemTearOffGL::doIt()
729 729
730 LLFloater* parent_floater = LLFloater::getFloaterByHandle(mParentHandle); 730 LLFloater* parent_floater = LLFloater::getFloaterByHandle(mParentHandle);
731 LLFloater* tear_off_menu = LLTearOffMenu::create(getMenu()); 731 LLFloater* tear_off_menu = LLTearOffMenu::create(getMenu());
732 if (parent_floater && tear_off_menu) 732
733 if (tear_off_menu)
733 { 734 {
734 parent_floater->addDependentFloater(tear_off_menu, FALSE); 735 if (parent_floater)
735 } 736 {
737 parent_floater->addDependentFloater(tear_off_menu, FALSE);
738 }
736 739
737 // give focus to torn off menu because it will have been taken away 740 // give focus to torn off menu because it will have
738 // when parent menu closes 741 // been taken away when parent menu closes
739 tear_off_menu->setFocus(TRUE); 742 tear_off_menu->setFocus(TRUE);
743 }
740 } 744 }
741 LLMenuItemGL::doIt(); 745 LLMenuItemGL::doIt();
742} 746}
@@ -1744,7 +1748,7 @@ void LLMenuItemBranchDownGL::draw( void )
1744 U8 font_style = mStyle; 1748 U8 font_style = mStyle;
1745 if (LLMenuItemGL::sDropShadowText && getEnabled() && !mDrawTextDisabled ) 1749 if (LLMenuItemGL::sDropShadowText && getEnabled() && !mDrawTextDisabled )
1746 { 1750 {
1747 font_style |= LLFontGL::DROP_SHADOW; 1751 font_style |= LLFontGL::DROP_SHADOW_SOFT;
1748 } 1752 }
1749 1753
1750 LLColor4 color; 1754 LLColor4 color;