diff options
| -rw-r--r-- | indra/llmath/v2math.h | 9 | ||||
| -rw-r--r-- | indra/llrender/llimagegl.cpp | 14 | ||||
| -rw-r--r-- | indra/newview/llfavoritesbar.cpp | 23 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/da/panel_status_bar.xml | 2 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/de/panel_status_bar.xml | 2 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/en/panel_status_bar.xml | 16 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/es/panel_status_bar.xml | 2 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/fr/panel_status_bar.xml | 2 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/it/panel_status_bar.xml | 2 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/ja/panel_status_bar.xml | 2 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/pl/panel_status_bar.xml | 2 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/pt/panel_status_bar.xml | 2 | ||||
| -rw-r--r-- | indra/win_updater/CMakeLists.txt | 13 | 
13 files changed, 62 insertions, 29 deletions
diff --git a/indra/llmath/v2math.h b/indra/llmath/v2math.h index 9fef8851cc..65f3714313 100644 --- a/indra/llmath/v2math.h +++ b/indra/llmath/v2math.h @@ -70,6 +70,8 @@ class LLVector2  		void	setVec(const LLVector2 &vec);	// deprecated  		void	setVec(const F32 *vec);			// deprecated +		inline bool isFinite() const; // checks to see if all values of LLVector2 are finite +  		F32		length() const;				// Returns magnitude of LLVector2  		F32		lengthSquared() const;		// Returns magnitude squared of LLVector2  		F32		normalize();					// Normalizes and returns the magnitude of LLVector2 @@ -215,6 +217,7 @@ inline void	LLVector2::setVec(const F32 *vec)  	mV[VY] = vec[VY];  } +  // LLVector2 Magnitude and Normalization Functions  inline F32 LLVector2::length(void) const @@ -247,6 +250,12 @@ inline F32		LLVector2::normalize(void)  	return (mag);  } +// checker +inline bool LLVector2::isFinite() const +{ +	return (llfinite(mV[VX]) && llfinite(mV[VY])); +} +  // deprecated  inline F32		LLVector2::magVec(void) const  { diff --git a/indra/llrender/llimagegl.cpp b/indra/llrender/llimagegl.cpp index 8addee606b..ff47c57c70 100644 --- a/indra/llrender/llimagegl.cpp +++ b/indra/llrender/llimagegl.cpp @@ -1738,8 +1738,18 @@ BOOL LLImageGL::getMask(const LLVector2 &tc)  	if (mPickMask)  	{ -		F32 u = tc.mV[0] - floorf(tc.mV[0]); -		F32 v = tc.mV[1] - floorf(tc.mV[1]); +		F32 u,v; +		if (LL_LIKELY(tc.isFinite())) +		{ +			u = tc.mV[0] - floorf(tc.mV[0]); +			v = tc.mV[1] - floorf(tc.mV[1]); +		} +		else +		{ +			LL_WARNS_ONCE("render") << "Ugh, non-finite u/v in mask pick" << LL_ENDL; +			u = v = 0.f; +			llassert(false); +		}  		if (LL_UNLIKELY(u < 0.f || u > 1.f ||  				v < 0.f || v > 1.f)) diff --git a/indra/newview/llfavoritesbar.cpp b/indra/newview/llfavoritesbar.cpp index bf7c735488..959395ff82 100644 --- a/indra/newview/llfavoritesbar.cpp +++ b/indra/newview/llfavoritesbar.cpp @@ -75,7 +75,9 @@ public:  		mPosY(0),  		mPosZ(0),  		mLoaded(false)  -	{} +	{ +		mHandle.bind(this); +	}  	void setLandmarkID(const LLUUID& id) { mLandmarkID = id; }  	const LLUUID& getLandmarkId() const { return mLandmarkID; } @@ -122,17 +124,21 @@ private:  		if(LLLandmarkActions::getLandmarkGlobalPos(mLandmarkID, g_pos))  		{  			LLLandmarkActions::getRegionNameAndCoordsFromPosGlobal(g_pos, -				boost::bind(&LLLandmarkInfoGetter::landmarkNameCallback, this, _1, _2, _3, _4)); +				boost::bind(&LLLandmarkInfoGetter::landmarkNameCallback, static_cast<LLHandle<LLLandmarkInfoGetter> >(mHandle), _1, _2, _3, _4));  		}  	} -	void landmarkNameCallback(const std::string& name, S32 x, S32 y, S32 z) +	static void landmarkNameCallback(LLHandle<LLLandmarkInfoGetter> handle, const std::string& name, S32 x, S32 y, S32 z)  	{ -		mPosX = x; -		mPosY = y; -		mPosZ = z; -		mName = name; -		mLoaded = true; +		LLLandmarkInfoGetter* getter = handle.get(); +		if (getter) +		{ +			getter->mPosX = x; +			getter->mPosY = y; +			getter->mPosZ = z; +			getter->mName = name; +			getter->mLoaded = true; +		}  	}  	LLUUID mLandmarkID; @@ -141,6 +147,7 @@ private:  	S32 mPosY;  	S32 mPosZ;  	bool mLoaded; +	LLRootHandle<LLLandmarkInfoGetter> mHandle;  };  /** diff --git a/indra/newview/skins/default/xui/da/panel_status_bar.xml b/indra/newview/skins/default/xui/da/panel_status_bar.xml index 4618fe536d..08ffafd5a6 100644 --- a/indra/newview/skins/default/xui/da/panel_status_bar.xml +++ b/indra/newview/skins/default/xui/da/panel_status_bar.xml @@ -22,7 +22,7 @@  		L$ [AMT]  	</panel.string>  	<button label="" label_selected="" name="buycurrency" tool_tip="Min balance"/> -	<button label="Køb" name="buyL" tool_tip="Klik for at købe flere L$"/> +	<button label="Køb L$" name="buyL" tool_tip="Klik for at købe flere L$"/>  	<text name="TimeText" tool_tip="Nuværende tid (Pacific)">  		24:00 PST  	</text> diff --git a/indra/newview/skins/default/xui/de/panel_status_bar.xml b/indra/newview/skins/default/xui/de/panel_status_bar.xml index 803bd1b5ab..3dc6997320 100644 --- a/indra/newview/skins/default/xui/de/panel_status_bar.xml +++ b/indra/newview/skins/default/xui/de/panel_status_bar.xml @@ -22,7 +22,7 @@  		[AMT] L$  	</panel.string>  	<button label="" label_selected="" name="buycurrency" tool_tip="Mein Kontostand"/> -	<button label=" " name="buyL" tool_tip="Hier klicken, um mehr L$ zu kaufen"/> +	<button label="L$ kaufen" name="buyL" tool_tip="Hier klicken, um mehr L$ zu kaufen"/>  	<text name="TimeText" tool_tip="Aktuelle Zeit (Pazifik)">  		24:00 H PST  	</text> diff --git a/indra/newview/skins/default/xui/en/panel_status_bar.xml b/indra/newview/skins/default/xui/en/panel_status_bar.xml index 8c7de22cf8..690d2971ee 100644 --- a/indra/newview/skins/default/xui/en/panel_status_bar.xml +++ b/indra/newview/skins/default/xui/en/panel_status_bar.xml @@ -62,11 +62,11 @@       halign="right"       font="SansSerifSmall"       follows="right|top" -     image_selected="BuyArrow_Over" -     image_unselected="BuyArrow_Over" -     image_pressed="BuyArrow_Press" +     image_selected="spacer35.tga" +     image_unselected="spacer35.tga" +     image_pressed="spacer35.tga"       height="16" -     label="Buy" +     label="Buy L$"       label_color="EmphasisColor"       left_pad="0"       label_shadow="false" @@ -99,7 +99,7 @@       image_pressed="Pause_Press"       image_pressed_selected="Play_Press"       is_toggle="true" -     left_pad="20" +     left_pad="15"       top="1"       name="media_toggle_btn"       tool_tip="Start/Stop All Media (Music, Video, Web pages)" @@ -112,12 +112,12 @@       image_pressed="Audio_Press"       image_unselected="Audio_Off"       is_toggle="true" -     left_pad="10" +     left_pad="5"       top="2"       name="volume_btn"       tool_tip="Global Volume Control"       width="16" /> -  <!--  <text +    <text       follows="right|top"       halign="center"       height="12" @@ -125,5 +125,5 @@       left_delta="0"       name="stat_btn"       top_delta="0" -     width="20"/>--> +     width="20"/>  </panel> diff --git a/indra/newview/skins/default/xui/es/panel_status_bar.xml b/indra/newview/skins/default/xui/es/panel_status_bar.xml index 1afa68106e..d4404fd9b5 100644 --- a/indra/newview/skins/default/xui/es/panel_status_bar.xml +++ b/indra/newview/skins/default/xui/es/panel_status_bar.xml @@ -22,7 +22,7 @@  		[AMT] L$  	</panel.string>  	<button label="" label_selected="" name="buycurrency" tool_tip="Mi saldo"/> -	<button label="Comprar" name="buyL" tool_tip="Pulsa para comprar más L$"/> +	<button label="Comprar L$" name="buyL" tool_tip="Pulsa para comprar más L$"/>  	<text name="TimeText" tool_tip="Hora actual (Pacífico)">  		24:00 AM PST  	</text> diff --git a/indra/newview/skins/default/xui/fr/panel_status_bar.xml b/indra/newview/skins/default/xui/fr/panel_status_bar.xml index 657bf792cf..dffb1d4238 100644 --- a/indra/newview/skins/default/xui/fr/panel_status_bar.xml +++ b/indra/newview/skins/default/xui/fr/panel_status_bar.xml @@ -22,7 +22,7 @@  		[AMT] L$  	</panel.string>  	<button label="" label_selected="" name="buycurrency" tool_tip="Mon solde"/> -	<button label="Acheter" name="buyL" tool_tip="Cliquez pour acheter plus de L$"/> +	<button label="Acheter L$" name="buyL" tool_tip="Cliquez pour acheter plus de L$"/>  	<text name="TimeText" tool_tip="Heure actuelle (Pacifique)">  		00h00 PST  	</text> diff --git a/indra/newview/skins/default/xui/it/panel_status_bar.xml b/indra/newview/skins/default/xui/it/panel_status_bar.xml index 584ac5e4b4..4c860ff479 100644 --- a/indra/newview/skins/default/xui/it/panel_status_bar.xml +++ b/indra/newview/skins/default/xui/it/panel_status_bar.xml @@ -22,7 +22,7 @@  		L$ [AMT]  	</panel.string>  	<button label="" label_selected="" name="buycurrency" tool_tip="Il mio saldo"/> -	<button label="Acquista" name="buyL" tool_tip="Clicca per comprare più L$"/> +	<button label="Acquista L$" name="buyL" tool_tip="Clicca per comprare più L$"/>  	<text name="TimeText" tool_tip="Orario attuale (Pacifico)">  		24:00, ora del Pacifico  	</text> diff --git a/indra/newview/skins/default/xui/ja/panel_status_bar.xml b/indra/newview/skins/default/xui/ja/panel_status_bar.xml index 923455abba..8a848f496d 100644 --- a/indra/newview/skins/default/xui/ja/panel_status_bar.xml +++ b/indra/newview/skins/default/xui/ja/panel_status_bar.xml @@ -22,7 +22,7 @@  		L$ [AMT]  	</panel.string>  	<button label="" label_selected="" name="buycurrency" tool_tip="所持金"/> -	<button label="購入" name="buyL" tool_tip="クリックして L$ を購入します"/> +	<button label="L$ の購入" name="buyL" tool_tip="クリックして L$ を購入します"/>  	<text name="TimeText" tool_tip="現在時刻(太平洋)">  		24:00 AM PST  	</text> diff --git a/indra/newview/skins/default/xui/pl/panel_status_bar.xml b/indra/newview/skins/default/xui/pl/panel_status_bar.xml index cd2ae14f6c..313c2732ff 100644 --- a/indra/newview/skins/default/xui/pl/panel_status_bar.xml +++ b/indra/newview/skins/default/xui/pl/panel_status_bar.xml @@ -22,7 +22,7 @@  		L$ [AMT]  	</panel.string>  	<button label="" label_selected="" name="buycurrency" tool_tip="Bilans"/> -	<button label="Kup" name="buyL" tool_tip="Kliknij aby kupić L$"/> +	<button label="Kup L$" name="buyL" tool_tip="Kliknij aby kupić L$"/>  	<text name="TimeText" tool_tip="Obecny Czas (Pacyficzny)">  		24:00 AM PST  	</text> diff --git a/indra/newview/skins/default/xui/pt/panel_status_bar.xml b/indra/newview/skins/default/xui/pt/panel_status_bar.xml index ae2879f4a9..a320d9d56d 100644 --- a/indra/newview/skins/default/xui/pt/panel_status_bar.xml +++ b/indra/newview/skins/default/xui/pt/panel_status_bar.xml @@ -22,7 +22,7 @@  		L$ [AMT]  	</panel.string>  	<button label="" label_selected="" name="buycurrency" tool_tip="Meu saldo"/> -	<button label="Comprar" name="buyL" tool_tip="Comprar mais L$"/> +	<button label="Comprar L$" name="buyL" tool_tip="Comprar mais L$"/>  	<text name="TimeText" tool_tip="Hora atual (Pacífico)">  		24:00 AM PST  	</text> diff --git a/indra/win_updater/CMakeLists.txt b/indra/win_updater/CMakeLists.txt index 82347adf20..210486c668 100644 --- a/indra/win_updater/CMakeLists.txt +++ b/indra/win_updater/CMakeLists.txt @@ -6,6 +6,13 @@ include(00-Common)  include(LLCommon)  include(Linking) +# *HACK - override msvcrt implementation (intialized on 00-Common) to be +# statically linked for the installer this relies on vc taking the last flag on +# the command line +set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MTd") +set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} /MT") +set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MT") +  include_directories(      ${LLCOMMON_INCLUDE_DIRS}      ) @@ -30,9 +37,9 @@ target_link_libraries(windows-updater  set_target_properties(windows-updater      PROPERTIES -    LINK_FLAGS "/NODEFAULTLIB:LIBCMT" -    LINK_FLAGS_DEBUG "/NODEFAULTLIB:\"LIBCMT;LIBCMTD;MSVCRT\"" +    LINK_FLAGS "/NODEFAULTLIB:MSVCRT" +    LINK_FLAGS_DEBUG "/NODEFAULTLIB:\"LIBCMT;MSVCRT\""      )  # The windows-updater doesn't link against anything non-system, apparently -#ll_deploy_sharedlibs_command(windows-updater)
\ No newline at end of file +#ll_deploy_sharedlibs_command(windows-updater)  | 
