diff options
author | Jacek Antonelli | 2008-08-15 23:44:59 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:59 -0500 |
commit | a408bac29378072fbf36864164149458c978cfcc (patch) | |
tree | 67feccf1a5d3816611ba48d6762f86f0f7f4b1f6 /linden/indra/newview/llfilepicker.cpp | |
parent | Second Life viewer sources 1.17.0.12 (diff) | |
download | meta-impy-a408bac29378072fbf36864164149458c978cfcc.zip meta-impy-a408bac29378072fbf36864164149458c978cfcc.tar.gz meta-impy-a408bac29378072fbf36864164149458c978cfcc.tar.bz2 meta-impy-a408bac29378072fbf36864164149458c978cfcc.tar.xz |
Second Life viewer sources 1.17.1.0
Diffstat (limited to 'linden/indra/newview/llfilepicker.cpp')
-rw-r--r-- | linden/indra/newview/llfilepicker.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/linden/indra/newview/llfilepicker.cpp b/linden/indra/newview/llfilepicker.cpp index 24d3932..3620c05 100644 --- a/linden/indra/newview/llfilepicker.cpp +++ b/linden/indra/newview/llfilepicker.cpp | |||
@@ -49,7 +49,7 @@ LLFilePicker LLFilePicker::sInstance; | |||
49 | 49 | ||
50 | #if LL_WINDOWS | 50 | #if LL_WINDOWS |
51 | #define SOUND_FILTER L"Sounds (*.wav)\0*.wav\0" | 51 | #define SOUND_FILTER L"Sounds (*.wav)\0*.wav\0" |
52 | #define IMAGE_FILTER L"Images (*.tga; *.bmp; *.jpg; *.jpeg)\0*.tga;*.bmp;*.jpg;*.jpeg\0" | 52 | #define IMAGE_FILTER L"Images (*.tga; *.bmp; *.jpg; *.jpeg; *.png)\0*.tga;*.bmp;*.jpg;*.jpeg;*.png\0" |
53 | #define ANIM_FILTER L"Animations (*.bvh)\0*.bvh\0" | 53 | #define ANIM_FILTER L"Animations (*.bvh)\0*.bvh\0" |
54 | #ifdef _CORY_TESTING | 54 | #ifdef _CORY_TESTING |
55 | #define GEOMETRY_FILTER L"SL Geometry (*.slg)\0*.slg\0" | 55 | #define GEOMETRY_FILTER L"SL Geometry (*.slg)\0*.slg\0" |
@@ -511,10 +511,12 @@ Boolean LLFilePicker::navOpenFilterProc(AEDesc *theItem, void *info, void *callB | |||
511 | if (fileInfo.filetype != 'JPEG' && fileInfo.filetype != 'JPG ' && | 511 | if (fileInfo.filetype != 'JPEG' && fileInfo.filetype != 'JPG ' && |
512 | fileInfo.filetype != 'BMP ' && fileInfo.filetype != 'TGA ' && | 512 | fileInfo.filetype != 'BMP ' && fileInfo.filetype != 'TGA ' && |
513 | fileInfo.filetype != 'BMPf' && fileInfo.filetype != 'TPIC' && | 513 | fileInfo.filetype != 'BMPf' && fileInfo.filetype != 'TPIC' && |
514 | fileInfo.filetype != 'PNG ' && | ||
514 | (fileInfo.extension && (CFStringCompare(fileInfo.extension, CFSTR("jpeg"), kCFCompareCaseInsensitive) != kCFCompareEqualTo && | 515 | (fileInfo.extension && (CFStringCompare(fileInfo.extension, CFSTR("jpeg"), kCFCompareCaseInsensitive) != kCFCompareEqualTo && |
515 | CFStringCompare(fileInfo.extension, CFSTR("jpg"), kCFCompareCaseInsensitive) != kCFCompareEqualTo && | 516 | CFStringCompare(fileInfo.extension, CFSTR("jpg"), kCFCompareCaseInsensitive) != kCFCompareEqualTo && |
516 | CFStringCompare(fileInfo.extension, CFSTR("bmp"), kCFCompareCaseInsensitive) != kCFCompareEqualTo && | 517 | CFStringCompare(fileInfo.extension, CFSTR("bmp"), kCFCompareCaseInsensitive) != kCFCompareEqualTo && |
517 | CFStringCompare(fileInfo.extension, CFSTR("tga"), kCFCompareCaseInsensitive) != kCFCompareEqualTo)) | 518 | CFStringCompare(fileInfo.extension, CFSTR("tga"), kCFCompareCaseInsensitive) != kCFCompareEqualTo && |
519 | CFStringCompare(fileInfo.extension, CFSTR("png"), kCFCompareCaseInsensitive) != kCFCompareEqualTo)) | ||
518 | ) | 520 | ) |
519 | { | 521 | { |
520 | result = false; | 522 | result = false; |
@@ -1169,7 +1171,7 @@ BOOL LLFilePicker::getOpenFile( ELoadFilter filter ) | |||
1169 | case FFLOAD_ANIM: | 1171 | case FFLOAD_ANIM: |
1170 | caption += "Animations (*.bvh)"; break; | 1172 | caption += "Animations (*.bvh)"; break; |
1171 | case FFLOAD_IMAGE: | 1173 | case FFLOAD_IMAGE: |
1172 | caption += "Images (*.tga; *.bmp; *.jpg; *.jpeg)"; break; | 1174 | caption += "Images (*.tga; *.bmp; *.jpg; *.jpeg; *.png)"; break; |
1173 | default:; | 1175 | default:; |
1174 | break; | 1176 | break; |
1175 | } | 1177 | } |