Converted frequently occuring setting lookups to LLCachedControl
Added LLObjectList::getAvatar(LLUUID) for type-safe and quicker lookup Added F32 overload to LLSD because using F64 needlessly is silly. (And its lack of F32 overload caused issues with LLCachedControl<F32>)
This commit is contained in:
@@ -236,9 +236,11 @@ void LLStatusBar::draw()
|
||||
|
||||
if (isBackgroundVisible())
|
||||
{
|
||||
static LLCachedControl<LLColor4> color_drop_shadow("ColorDropShadow",LLColor4(0,0,200),LLUI::sColorsGroup);
|
||||
static LLCachedControl<S32> drop_shadow_floater("DropShadowFloater",5,LLUI::sConfigGroup);
|
||||
gl_drop_shadow(0, getRect().getHeight(), getRect().getWidth(), 0,
|
||||
LLUI::sColorsGroup->getColor("ColorDropShadow"),
|
||||
LLUI::sConfigGroup->getS32("DropShadowFloater") );
|
||||
color_drop_shadow,
|
||||
drop_shadow_floater );
|
||||
}
|
||||
LLPanel::draw();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user