diff options
author | McCabe Maxsted | 2010-09-11 14:28:06 -0700 |
---|---|---|
committer | McCabe Maxsted | 2010-09-11 14:28:06 -0700 |
commit | eadbe465d5ef1a661af6bbc2d2b7b443bbffb409 (patch) | |
tree | b404eb376d066820198c6a8f734ed220f3345643 | |
parent | Fixed the layout of the fonts preferences panel's font previews (diff) | |
parent | Fixed merge conflicts, propagated the _stat usage for windows in floaterlocal... (diff) | |
download | meta-impy-eadbe465d5ef1a661af6bbc2d2b7b443bbffb409.zip meta-impy-eadbe465d5ef1a661af6bbc2d2b7b443bbffb409.tar.gz meta-impy-eadbe465d5ef1a661af6bbc2d2b7b443bbffb409.tar.bz2 meta-impy-eadbe465d5ef1a661af6bbc2d2b7b443bbffb409.tar.xz |
Merge remote branch 'elektra/weekly' into weekly
-rw-r--r-- | linden/indra/llwindow/llwindowmacosx.cpp | 1 | ||||
-rw-r--r-- | linden/indra/newview/floaterlocalassetbrowse.cpp | 24 | ||||
-rw-r--r-- | linden/indra/newview/llimview.cpp | 2 |
3 files changed, 14 insertions, 13 deletions
diff --git a/linden/indra/llwindow/llwindowmacosx.cpp b/linden/indra/llwindow/llwindowmacosx.cpp index 613d147..7e7e0af 100644 --- a/linden/indra/llwindow/llwindowmacosx.cpp +++ b/linden/indra/llwindow/llwindowmacosx.cpp | |||
@@ -3194,7 +3194,6 @@ void LLWindowMacOSX::spawnWebBrowser(const std::string& escaped_url) | |||
3194 | } | 3194 | } |
3195 | } | 3195 | } |
3196 | 3196 | ||
3197 | |||
3198 | BOOL LLWindowMacOSX::dialog_color_picker ( F32 *r, F32 *g, F32 *b) | 3197 | BOOL LLWindowMacOSX::dialog_color_picker ( F32 *r, F32 *g, F32 *b) |
3199 | { | 3198 | { |
3200 | BOOL retval = FALSE; | 3199 | BOOL retval = FALSE; |
diff --git a/linden/indra/newview/floaterlocalassetbrowse.cpp b/linden/indra/newview/floaterlocalassetbrowse.cpp index 6657334..6564528 100644 --- a/linden/indra/newview/floaterlocalassetbrowse.cpp +++ b/linden/indra/newview/floaterlocalassetbrowse.cpp | |||
@@ -117,15 +117,21 @@ LocalBitmap::LocalBitmap(std::string fullpath) | |||
117 | else if (temp_exten == "jpg" || temp_exten == "jpeg") { this->extension = IMG_EXTEN_JPG; } | 117 | else if (temp_exten == "jpg" || temp_exten == "jpeg") { this->extension = IMG_EXTEN_JPG; } |
118 | else if (temp_exten == "png") { this->extension = IMG_EXTEN_PNG; } | 118 | else if (temp_exten == "png") { this->extension = IMG_EXTEN_PNG; } |
119 | else { return; } // no valid extension. | 119 | else { return; } // no valid extension. |
120 | 120 | ||
121 | /* getting file's last modified */ | 121 | /* getting file's last modified */ |
122 | 122 | ||
123 | llstat temp_stat; | 123 | #ifdef LL_WINDOWS |
124 | LLFile::stat(this->filename, &temp_stat); | 124 | struct _stat temp_stat; |
125 | _stat(this->filename.c_str(), &temp_stat); | ||
126 | #else | ||
127 | struct stat temp_stat; | ||
128 | stat(this->filename.c_str(), &temp_stat); | ||
129 | #endif | ||
130 | |||
125 | std::time_t time = temp_stat.st_mtime; | 131 | std::time_t time = temp_stat.st_mtime; |
126 | 132 | ||
127 | this->last_modified = asctime( localtime(&time) ); | 133 | this->last_modified = asctime( localtime(&time) ); |
128 | 134 | ||
129 | /* checking if the bitmap is valid && decoding if it is */ | 135 | /* checking if the bitmap is valid && decoding if it is */ |
130 | LLImageRaw* raw_image = new LLImageRaw(); | 136 | LLImageRaw* raw_image = new LLImageRaw(); |
131 | if ( this->decodeSelf(raw_image) ) | 137 | if ( this->decodeSelf(raw_image) ) |
@@ -160,6 +166,7 @@ void LocalBitmap::updateSelf() | |||
160 | if ( !gDirUtilp->fileExists(this->filename) ) { this->linkstatus = LINK_BROKEN; return; } | 166 | if ( !gDirUtilp->fileExists(this->filename) ) { this->linkstatus = LINK_BROKEN; return; } |
161 | 167 | ||
162 | /* exists, let's check if it's lastmod has changed */ | 168 | /* exists, let's check if it's lastmod has changed */ |
169 | |||
163 | #ifdef LL_WINDOWS | 170 | #ifdef LL_WINDOWS |
164 | struct _stat temp_stat; | 171 | struct _stat temp_stat; |
165 | _stat(this->filename.c_str(), &temp_stat); | 172 | _stat(this->filename.c_str(), &temp_stat); |
@@ -169,11 +176,6 @@ void LocalBitmap::updateSelf() | |||
169 | #endif | 176 | #endif |
170 | std::time_t temp_time = temp_stat.st_mtime; | 177 | std::time_t temp_time = temp_stat.st_mtime; |
171 | 178 | ||
172 | /*const std::time_t temp_time = boost::filesystem::last_write_time( boost::filesystem::path( this->filename ) ); | ||
173 | llstat temp_stat; | ||
174 | LLFile::stat(this->filename, &temp_stat); | ||
175 | std::time_t temp_time = temp_stat.st_mtime;*/ | ||
176 | |||
177 | LLSD new_last_modified = asctime( localtime(&temp_time) ); | 179 | LLSD new_last_modified = asctime( localtime(&temp_time) ); |
178 | if ( this->last_modified.asString() == new_last_modified.asString() ) { return; } | 180 | if ( this->last_modified.asString() == new_last_modified.asString() ) { return; } |
179 | 181 | ||
@@ -475,11 +477,11 @@ void LocalAssetBrowser::AddBitmap() | |||
475 | LocalBitmap* unit = new LocalBitmap( filename ); | 477 | LocalBitmap* unit = new LocalBitmap( filename ); |
476 | 478 | ||
477 | if ( unit->getIfValidBool() ) | 479 | if ( unit->getIfValidBool() ) |
478 | { | 480 | { |
479 | loaded_bitmaps.push_back( unit ); | 481 | loaded_bitmaps.push_back( unit ); |
480 | change_happened = true; | 482 | change_happened = true; |
481 | } | 483 | } |
482 | 484 | ||
483 | filename = picker.getNextFile(); | 485 | filename = picker.getNextFile(); |
484 | } | 486 | } |
485 | 487 | ||
diff --git a/linden/indra/newview/llimview.cpp b/linden/indra/newview/llimview.cpp index b5b1df2..12a26f9 100644 --- a/linden/indra/newview/llimview.cpp +++ b/linden/indra/newview/llimview.cpp | |||
@@ -692,7 +692,7 @@ void LLIMMgr::addMessage( | |||
692 | else | 692 | else |
693 | new_line = new_line.substr(1); | 693 | new_line = new_line.substr(1); |
694 | 694 | ||
695 | color = get_extended_text_color(session_id, other_participant_id, msg, gSavedSettings.getColor("IMChatColor")); | 695 | color = get_extended_text_color(session_id, other_participant_id, new_line, gSavedSettings.getColor("IMChatColor")); |
696 | } | 696 | } |
697 | 697 | ||
698 | if ( !link_name ) | 698 | if ( !link_name ) |