diff options
Diffstat (limited to 'linden/indra/newview/llworldmapview.cpp')
-rw-r--r-- | linden/indra/newview/llworldmapview.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/linden/indra/newview/llworldmapview.cpp b/linden/indra/newview/llworldmapview.cpp index b6f75bc..77833c3 100644 --- a/linden/indra/newview/llworldmapview.cpp +++ b/linden/indra/newview/llworldmapview.cpp | |||
@@ -1195,6 +1195,9 @@ static void drawDot(F32 x_pixels, F32 y_pixels, | |||
1195 | } | 1195 | } |
1196 | else | 1196 | else |
1197 | { | 1197 | { |
1198 | // Draw V indicator for above or below | ||
1199 | // *TODO: Replace this vector drawing with icons | ||
1200 | |||
1198 | F32 left = x_pixels - dot_radius; | 1201 | F32 left = x_pixels - dot_radius; |
1199 | F32 right = x_pixels + dot_radius; | 1202 | F32 right = x_pixels + dot_radius; |
1200 | F32 center = (left + right) * 0.5f; | 1203 | F32 center = (left + right) * 0.5f; |
@@ -1203,13 +1206,14 @@ static void drawDot(F32 x_pixels, F32 y_pixels, | |||
1203 | 1206 | ||
1204 | gGL.getTexUnit(0)->unbind(LLTexUnit::TT_TEXTURE); | 1207 | gGL.getTexUnit(0)->unbind(LLTexUnit::TT_TEXTURE); |
1205 | gGL.color4fv( color.mV ); | 1208 | gGL.color4fv( color.mV ); |
1206 | LLUI::setLineWidth(1.5f); | 1209 | LLUI::setLineWidth(3.0f); |
1207 | F32 h_bar = relative_z > HEIGHT_THRESHOLD ? top : bottom; // horizontal bar Y | 1210 | F32 point = relative_z > HEIGHT_THRESHOLD ? top : bottom; // Y pos of the point of the V |
1211 | F32 back = relative_z > HEIGHT_THRESHOLD ? bottom : top; // Y pos of the ends of the V | ||
1208 | gGL.begin( LLRender::LINES ); | 1212 | gGL.begin( LLRender::LINES ); |
1209 | gGL.vertex2f(center, top); | 1213 | gGL.vertex2f(left, back); |
1210 | gGL.vertex2f(left, h_bar); | 1214 | gGL.vertex2f(center, point); |
1211 | gGL.vertex2f(right, h_bar); | 1215 | gGL.vertex2f(center, point); |
1212 | gGL.vertex2f(right, bottom); | 1216 | gGL.vertex2f(right, back); |
1213 | gGL.end(); | 1217 | gGL.end(); |
1214 | LLUI::setLineWidth(1.0f); | 1218 | LLUI::setLineWidth(1.0f); |
1215 | } | 1219 | } |