aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-06-13 10:29:01 -0700
committerMcCabe Maxsted2009-06-13 10:29:01 -0700
commit662ce8bf4a5b36e103adb0bf70f5673b28cedbf7 (patch)
tree413d1639afea004553cb7749bb62b992e4ee6e57 /linden/indra/newview
parentCleaned up some old unused references (diff)
downloadmeta-impy-662ce8bf4a5b36e103adb0bf70f5673b28cedbf7.zip
meta-impy-662ce8bf4a5b36e103adb0bf70f5673b28cedbf7.tar.gz
meta-impy-662ce8bf4a5b36e103adb0bf70f5673b28cedbf7.tar.bz2
meta-impy-662ce8bf4a5b36e103adb0bf70f5673b28cedbf7.tar.xz
Applied Aimee's patch for VWR-4106: Mini-map beacon icon doesn't display correctly when beacon position above or below camera
Diffstat (limited to 'linden/indra/newview')
-rw-r--r--linden/indra/newview/llworldmapview.cpp16
-rw-r--r--linden/indra/newview/llworldmapview.h2
2 files changed, 11 insertions, 7 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 }
diff --git a/linden/indra/newview/llworldmapview.h b/linden/indra/newview/llworldmapview.h
index 7e94e19..b97dfb5 100644
--- a/linden/indra/newview/llworldmapview.h
+++ b/linden/indra/newview/llworldmapview.h
@@ -105,7 +105,7 @@ public:
105 F32 y_pixels, 105 F32 y_pixels,
106 const LLColor4& color, 106 const LLColor4& color,
107 F32 relative_z = 0.f, 107 F32 relative_z = 0.f,
108 F32 dot_radius = 3.f); 108 F32 dot_radius = 5.f);
109 109
110 static void drawTrackingCircle( const LLRect& rect, S32 x, S32 y, 110 static void drawTrackingCircle( const LLRect& rect, S32 x, S32 y,
111 const LLColor4& color, 111 const LLColor4& color,