aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llworldmapview.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:54 -0500
committerJacek Antonelli2008-08-15 23:44:54 -0500
commitb2afb8800bb033a04bb3ecdf0363068d56648ef1 (patch)
tree3568129b5bbddb47cd39d622b4137a8fbff4abaf /linden/indra/newview/llworldmapview.cpp
parentSecond Life viewer sources 1.14.0.1 (diff)
downloadmeta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.zip
meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.gz
meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.bz2
meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.xz
Second Life viewer sources 1.15.0.2
Diffstat (limited to 'linden/indra/newview/llworldmapview.cpp')
-rw-r--r--linden/indra/newview/llworldmapview.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/linden/indra/newview/llworldmapview.cpp b/linden/indra/newview/llworldmapview.cpp
index 65a084d..01dd1b8 100644
--- a/linden/indra/newview/llworldmapview.cpp
+++ b/linden/indra/newview/llworldmapview.cpp
@@ -4,6 +4,7 @@
4 * 4 *
5 * Copyright (c) 2001-2007, Linden Research, Inc. 5 * Copyright (c) 2001-2007, Linden Research, Inc.
6 * 6 *
7 * Second Life Viewer Source Code
7 * The source code in this file ("Source Code") is provided by Linden Lab 8 * The source code in this file ("Source Code") is provided by Linden Lab
8 * to you under the terms of the GNU General Public License, version 2.0 9 * to you under the terms of the GNU General Public License, version 2.0
9 * ("GPL"), unless you have obtained a separate licensing agreement 10 * ("GPL"), unless you have obtained a separate licensing agreement
@@ -1789,7 +1790,7 @@ BOOL outside_slop(S32 x, S32 y, S32 start_x, S32 start_y)
1789 1790
1790BOOL LLWorldMapView::handleMouseDown( S32 x, S32 y, MASK mask ) 1791BOOL LLWorldMapView::handleMouseDown( S32 x, S32 y, MASK mask )
1791{ 1792{
1792 gFocusMgr.setMouseCapture( this, NULL ); 1793 gFocusMgr.setMouseCapture( this );
1793 1794
1794 mMouseDownPanX = llround(sPanX); 1795 mMouseDownPanX = llround(sPanX);
1795 mMouseDownPanY = llround(sPanY); 1796 mMouseDownPanY = llround(sPanY);
@@ -1801,7 +1802,7 @@ BOOL LLWorldMapView::handleMouseDown( S32 x, S32 y, MASK mask )
1801 1802
1802BOOL LLWorldMapView::handleMouseUp( S32 x, S32 y, MASK mask ) 1803BOOL LLWorldMapView::handleMouseUp( S32 x, S32 y, MASK mask )
1803{ 1804{
1804 if (this == gFocusMgr.getMouseCapture()) 1805 if (hasMouseCapture())
1805 { 1806 {
1806 if (mPanning) 1807 if (mPanning)
1807 { 1808 {
@@ -1828,7 +1829,7 @@ BOOL LLWorldMapView::handleMouseUp( S32 x, S32 y, MASK mask )
1828 handleClick(x, y, mask, &hit_type, &id); 1829 handleClick(x, y, mask, &hit_type, &id);
1829 } 1830 }
1830 gViewerWindow->showCursor(); 1831 gViewerWindow->showCursor();
1831 gFocusMgr.setMouseCapture( NULL, NULL ); 1832 gFocusMgr.setMouseCapture( NULL );
1832 return TRUE; 1833 return TRUE;
1833 } 1834 }
1834 return FALSE; 1835 return FALSE;
@@ -1874,7 +1875,7 @@ void LLWorldMapView::updateVisibleBlocks()
1874 1875
1875BOOL LLWorldMapView::handleHover( S32 x, S32 y, MASK mask ) 1876BOOL LLWorldMapView::handleHover( S32 x, S32 y, MASK mask )
1876{ 1877{
1877 if (this == gFocusMgr.getMouseCapture()) 1878 if (hasMouseCapture())
1878 { 1879 {
1879 if (mPanning || outside_slop(x, y, mMouseDownX, mMouseDownY)) 1880 if (mPanning || outside_slop(x, y, mMouseDownX, mMouseDownY))
1880 { 1881 {