diff options
author | Steven Bennetts <steve@lindenlab.com> | 2008-04-17 02:06:30 +0000 |
---|---|---|
committer | Steven Bennetts <steve@lindenlab.com> | 2008-04-17 02:06:30 +0000 |
commit | c57beb8b4bd51add9a92ddc4d704e7bea9c4d940 (patch) | |
tree | 8fc0abb0655302822390d227d9ec0ad7d4056563 /indra/newview/llnetmap.cpp | |
parent | fb42741b620cea3d3b6380f1f099c92fcf4f3b04 (diff) |
QAR-449 Viewer 1.20 RC 0
merge Branch_1-20-Viewer -r 84060 : 84432 -> release
Diffstat (limited to 'indra/newview/llnetmap.cpp')
-rw-r--r-- | indra/newview/llnetmap.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/newview/llnetmap.cpp b/indra/newview/llnetmap.cpp index 1550751e7f..1b2474728f 100644 --- a/indra/newview/llnetmap.cpp +++ b/indra/newview/llnetmap.cpp @@ -436,10 +436,12 @@ void LLNetMap::draw() } // Draw dot for self avatar position - //drawTracking( gAgent.getPosGlobalFromAgent(gAgent.getFrameAgent().getCenter()), gSelfMapColor ); pos_global = gAgent.getPositionGlobal(); pos_map = globalPosToView(pos_global); - LLWorldMapView::sAvatarYouSmallImage->draw(llround(pos_map.mV[VX]) - 4, llround(pos_map.mV[VY]) - 4); + LLUIImagePtr you = LLWorldMapView::sAvatarYouSmallImage; + you->draw( + llround(pos_map.mV[VX]) - you->getWidth()/2, + llround(pos_map.mV[VY]) - you->getHeight()/2); // Draw frustum F32 meters_to_pixels = gMiniMapScale/ LLWorld::getInstance()->getRegionWidthInMeters(); |