aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloatermap.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:34 -0500
committerJacek Antonelli2008-08-15 23:45:34 -0500
commitcd17687f01420952712a500107e0f93e7ab8d5f8 (patch)
treece48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/newview/llfloatermap.cpp
parentSecond Life viewer sources 1.19.0.5 (diff)
downloadmeta-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 '')
-rw-r--r--linden/indra/newview/llfloatermap.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/linden/indra/newview/llfloatermap.cpp b/linden/indra/newview/llfloatermap.cpp
index b60515d..232055a 100644
--- a/linden/indra/newview/llfloatermap.cpp
+++ b/linden/indra/newview/llfloatermap.cpp
@@ -118,7 +118,7 @@ LLFloaterMap *gFloaterMap = NULL;
118LLFloaterMap::LLFloaterMap(const std::string& name) 118LLFloaterMap::LLFloaterMap(const std::string& name)
119 : 119 :
120 LLFloater(name, 120 LLFloater(name,
121 "FloaterMapRect", 121 "FloaterMiniMapRect",
122 MAP_TITLE, 122 MAP_TITLE,
123 TRUE, 123 TRUE,
124 FLOATERMAP_MIN_WIDTH, 124 FLOATERMAP_MIN_WIDTH,
@@ -128,7 +128,7 @@ LLFloaterMap::LLFloaterMap(const std::string& name)
128 TRUE) // close button 128 TRUE) // close button
129{ 129{
130 const S32 LEFT = LLPANEL_BORDER_WIDTH; 130 const S32 LEFT = LLPANEL_BORDER_WIDTH;
131 const S32 TOP = mRect.getHeight(); 131 const S32 TOP = getRect().getHeight();
132 132
133 S32 y = 0; 133 S32 y = 0;
134 134
@@ -136,7 +136,7 @@ LLFloaterMap::LLFloaterMap(const std::string& name)
136 LLRect map_rect( 136 LLRect map_rect(
137 LEFT, 137 LEFT,
138 TOP - LLPANEL_BORDER_WIDTH, 138 TOP - LLPANEL_BORDER_WIDTH,
139 mRect.getWidth() - LLPANEL_BORDER_WIDTH, 139 getRect().getWidth() - LLPANEL_BORDER_WIDTH,
140 y ); 140 y );
141 LLColor4 bg_color = gColors.getColor( "NetMapBackgroundColor" ); 141 LLColor4 bg_color = gColors.getColor( "NetMapBackgroundColor" );
142 mMap = new LLNetMap("Net Map", map_rect, bg_color); 142 mMap = new LLNetMap("Net Map", map_rect, bg_color);
@@ -144,8 +144,7 @@ LLFloaterMap::LLFloaterMap(const std::string& name)
144 addChildAtEnd(mMap); 144 addChildAtEnd(mMap);
145 145
146 // Get the drag handle all the way in back 146 // Get the drag handle all the way in back
147 removeChild(mDragHandle); 147 sendChildToBack(getDragHandle());
148 addChildAtEnd(mDragHandle);
149 148
150 setIsChrome(TRUE); 149 setIsChrome(TRUE);
151} 150}
@@ -191,14 +190,14 @@ void LLFloaterMap::draw()
191 if( gAgent.cameraMouselook()) 190 if( gAgent.cameraMouselook())
192 { 191 {
193 setMouseOpaque(FALSE); 192 setMouseOpaque(FALSE);
194 mDragHandle->setMouseOpaque(FALSE); 193 getDragHandle()->setMouseOpaque(FALSE);
195 194
196 drawChild(mMap); 195 drawChild(mMap);
197 } 196 }
198 else 197 else
199 { 198 {
200 setMouseOpaque(TRUE); 199 setMouseOpaque(TRUE);
201 mDragHandle->setMouseOpaque(TRUE); 200 getDragHandle()->setMouseOpaque(TRUE);
202 201
203 LLFloater::draw(); 202 LLFloater::draw();
204 } 203 }