diff options
author | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
commit | cd17687f01420952712a500107e0f93e7ab8d5f8 (patch) | |
tree | ce48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/newview/llstatgraph.cpp | |
parent | Second Life viewer sources 1.19.0.5 (diff) | |
download | meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.zip meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.gz meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.bz2 meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.xz |
Second Life viewer sources 1.19.1.0
Diffstat (limited to 'linden/indra/newview/llstatgraph.cpp')
-rw-r--r-- | linden/indra/newview/llstatgraph.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/linden/indra/newview/llstatgraph.cpp b/linden/indra/newview/llstatgraph.cpp index 910f85b..992b959 100644 --- a/linden/indra/newview/llstatgraph.cpp +++ b/linden/indra/newview/llstatgraph.cpp | |||
@@ -32,6 +32,7 @@ | |||
32 | #include "llviewerprecompiledheaders.h" | 32 | #include "llviewerprecompiledheaders.h" |
33 | 33 | ||
34 | #include "llstatgraph.h" | 34 | #include "llstatgraph.h" |
35 | #include "llglimmediate.h" | ||
35 | 36 | ||
36 | #include "llmath.h" | 37 | #include "llmath.h" |
37 | #include "llui.h" | 38 | #include "llui.h" |
@@ -115,21 +116,21 @@ void LLStatGraph::draw() | |||
115 | } | 116 | } |
116 | } | 117 | } |
117 | 118 | ||
118 | //gl_drop_shadow(0, mRect.getHeight(), mRect.getWidth(), 0, | 119 | //gl_drop_shadow(0, getRect().getHeight(), getRect().getWidth(), 0, |
119 | // gColors.getColor("ColorDropShadow"), | 120 | // gColors.getColor("ColorDropShadow"), |
120 | // (S32) gSavedSettings.getF32("DropShadowFloater") ); | 121 | // (S32) gSavedSettings.getF32("DropShadowFloater") ); |
121 | 122 | ||
122 | 123 | ||
123 | color = gColors.getColor( "MenuDefaultBgColor" ); | 124 | color = gColors.getColor( "MenuDefaultBgColor" ); |
124 | glColor4fv(color.mV); | 125 | gGL.color4fv(color.mV); |
125 | gl_rect_2d(0, mRect.getHeight(), mRect.getWidth(), 0, TRUE); | 126 | gl_rect_2d(0, getRect().getHeight(), getRect().getWidth(), 0, TRUE); |
126 | 127 | ||
127 | glColor4fv(LLColor4::black.mV); | 128 | gGL.color4fv(LLColor4::black.mV); |
128 | gl_rect_2d(0, mRect.getHeight(), mRect.getWidth(), 0, FALSE); | 129 | gl_rect_2d(0, getRect().getHeight(), getRect().getWidth(), 0, FALSE); |
129 | 130 | ||
130 | color = mThresholdColors[i]; | 131 | color = mThresholdColors[i]; |
131 | glColor4fv(color.mV); | 132 | gGL.color4fv(color.mV); |
132 | gl_rect_2d(1, llround(frac*mRect.getHeight()), mRect.getWidth() - 1, 0, TRUE); | 133 | gl_rect_2d(1, llround(frac*getRect().getHeight()), getRect().getWidth() - 1, 0, TRUE); |
133 | } | 134 | } |
134 | } | 135 | } |
135 | 136 | ||