diff options
| author | AndreyL ProductEngine <alihatskiy@productengine.com> | 2019-01-03 22:59:49 +0200 | 
|---|---|---|
| committer | AndreyL ProductEngine <alihatskiy@productengine.com> | 2019-01-03 22:59:49 +0200 | 
| commit | 09b750483a2cde7ea3c80a0238f3224a2cf1cb70 (patch) | |
| tree | 5f9b38b93f916c820cf9308ed689701790b3eef5 /indra/llui/lltextbase.cpp | |
| parent | ab428e194eaa144e8dcecc353c3c7ed83d6cee3e (diff) | |
SL-10293 Firestorm PR: preferences and menu search
Diffstat (limited to 'indra/llui/lltextbase.cpp')
| -rw-r--r-- | indra/llui/lltextbase.cpp | 11 | 
1 files changed, 11 insertions, 0 deletions
| diff --git a/indra/llui/lltextbase.cpp b/indra/llui/lltextbase.cpp index c570285856..a23741b6dd 100644 --- a/indra/llui/lltextbase.cpp +++ b/indra/llui/lltextbase.cpp @@ -1222,6 +1222,17 @@ void LLTextBase::draw()  		gl_rect_2d(text_rect, bg_color % alpha, TRUE);  	} +	// Draw highlighted if needed +	if( ll::ui::SearchableControl::getHighlighted() ) +	{ +		LLColor4 bg_color = ll::ui::SearchableControl::getHighlightColor(); +		LLRect bg_rect = mVisibleTextRect; +		if( mScroller ) +			bg_rect.intersectWith( text_rect ); + +		gl_rect_2d( text_rect, bg_color, TRUE ); +	} +	  	bool should_clip = mClip || mScroller != NULL;  	{ LLLocalClipRect clip(text_rect, should_clip); | 
