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:
@@ -462,8 +462,8 @@ void LLAlertDialog::draw()
|
||||
setDefaultBtn(mButtonData[mDefaultOption].mButton);
|
||||
}
|
||||
|
||||
LLColor4 shadow_color = LLUI::sColorsGroup->getColor("ColorDropShadow");
|
||||
S32 shadow_lines = LLUI::sConfigGroup->getS32("DropShadowFloater");
|
||||
static LLColor4 shadow_color = LLUI::sColorsGroup->getColor("ColorDropShadow");
|
||||
static S32 shadow_lines = LLUI::sConfigGroup->getS32("DropShadowFloater");
|
||||
|
||||
gl_drop_shadow( 0, getRect().getHeight(), getRect().getWidth(), 0,
|
||||
shadow_color, shadow_lines);
|
||||
|
||||
@@ -1408,8 +1408,8 @@ void LLFloater::draw()
|
||||
S32 right = getRect().getWidth() - LLPANEL_BORDER_WIDTH;
|
||||
S32 bottom = LLPANEL_BORDER_WIDTH;
|
||||
|
||||
LLColor4 shadow_color = LLUI::sColorsGroup->getColor("ColorDropShadow");
|
||||
F32 shadow_offset = (F32)LLUI::sConfigGroup->getS32("DropShadowFloater");
|
||||
static LLColor4 shadow_color = LLUI::sColorsGroup->getColor("ColorDropShadow");
|
||||
static F32 shadow_offset = (F32)LLUI::sConfigGroup->getS32("DropShadowFloater");
|
||||
if (!isBackgroundOpaque())
|
||||
{
|
||||
shadow_offset *= 0.2f;
|
||||
|
||||
@@ -2933,9 +2933,11 @@ void LLMenuGL::draw( void )
|
||||
{
|
||||
if (mDropShadowed && !mTornOff)
|
||||
{
|
||||
static LLColor4 color_drop_shadow = LLUI::sColorsGroup->getColor("ColorDropShadow");
|
||||
static S32 drop_shadow_floater = LLUI::sConfigGroup->getS32("DropShadowFloater");
|
||||
gl_drop_shadow(0, getRect().getHeight(), getRect().getWidth(), 0,
|
||||
LLUI::sColorsGroup->getColor("ColorDropShadow"),
|
||||
LLUI::sConfigGroup->getS32("DropShadowFloater") );
|
||||
color_drop_shadow,
|
||||
drop_shadow_floater );
|
||||
}
|
||||
|
||||
LLColor4 bg_color = mBackgroundColor;
|
||||
|
||||
@@ -245,8 +245,8 @@ void LLModalDialog::onClose(bool app_quitting)
|
||||
// virtual
|
||||
void LLModalDialog::draw()
|
||||
{
|
||||
LLColor4 shadow_color = LLUI::sColorsGroup->getColor("ColorDropShadow");
|
||||
S32 shadow_lines = LLUI::sConfigGroup->getS32("DropShadowFloater");
|
||||
static LLColor4 shadow_color = LLUI::sColorsGroup->getColor("ColorDropShadow");
|
||||
static S32 shadow_lines = LLUI::sConfigGroup->getS32("DropShadowFloater");
|
||||
|
||||
gl_drop_shadow( 0, getRect().getHeight(), getRect().getWidth(), 0,
|
||||
shadow_color, shadow_lines);
|
||||
|
||||
Reference in New Issue
Block a user