Added LLViewDrawContext. Implemented in a few select ui elements. Just enough to support the panel prim media controller fading out all fancy-like.
This commit is contained in:
@@ -104,6 +104,8 @@ void LLViewBorder::draw()
|
||||
|
||||
void LLViewBorder::drawOnePixelLines()
|
||||
{
|
||||
F32 alpha = getDrawContext().mAlpha;
|
||||
|
||||
gGL.getTexUnit(0)->unbind(LLTexUnit::TT_TEXTURE);
|
||||
|
||||
LLColor4 top_color = mHighlightLight;
|
||||
@@ -138,6 +140,9 @@ void LLViewBorder::drawOnePixelLines()
|
||||
S32 right = getRect().getWidth();
|
||||
S32 bottom = 0;
|
||||
|
||||
top_color %= alpha;
|
||||
bottom_color %= alpha;
|
||||
|
||||
gGL.color4fv( top_color.mV );
|
||||
gl_line_2d(left, bottom, left, top);
|
||||
gl_line_2d(left, top, right, top);
|
||||
|
||||
Reference in New Issue
Block a user