diff options
-rw-r--r-- | ChangeLog.txt | 7 | ||||
-rw-r--r-- | linden/indra/newview/llfloatersnapshot.cpp | 6 | ||||
-rw-r--r-- | linden/indra/newview/llfloatersnapshot.h | 1 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/xui/en-us/floater_snapshot.xml | 3 |
4 files changed, 17 insertions, 0 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt index 1ef7109..b16bb04 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt | |||
@@ -10,6 +10,13 @@ | |||
10 | * ChangeLog.txt | 10 | * ChangeLog.txt |
11 | Armin Weatherwax, not Armin. | 11 | Armin Weatherwax, not Armin. |
12 | 12 | ||
13 | * linden/indra/newview/llfloatersnapshot.cpp: | ||
14 | Added TGA to snapshot options. | ||
15 | * linden/indra/newview/llfloatersnapshot.h: | ||
16 | Ditto. | ||
17 | * linden/indra/newview/skins/default/xui/en-us/floater_snapshot.xml: | ||
18 | Ditto. | ||
19 | |||
13 | 20 | ||
14 | 2009-01-27 Jacek Antonelli <jacek.antonelli@gmail.com> | 21 | 2009-01-27 Jacek Antonelli <jacek.antonelli@gmail.com> |
15 | 22 | ||
diff --git a/linden/indra/newview/llfloatersnapshot.cpp b/linden/indra/newview/llfloatersnapshot.cpp index f5f6c8e..accbcb4 100644 --- a/linden/indra/newview/llfloatersnapshot.cpp +++ b/linden/indra/newview/llfloatersnapshot.cpp | |||
@@ -71,6 +71,7 @@ | |||
71 | #include "llimagepng.h" | 71 | #include "llimagepng.h" |
72 | #include "llimagebmp.h" | 72 | #include "llimagebmp.h" |
73 | #include "llimagej2c.h" | 73 | #include "llimagej2c.h" |
74 | #include "llimagetga.h" | ||
74 | #include "llvfile.h" | 75 | #include "llvfile.h" |
75 | #include "llvfs.h" | 76 | #include "llvfs.h" |
76 | 77 | ||
@@ -825,6 +826,9 @@ void LLSnapshotLivePreview::onIdle( void* snapshot_preview ) | |||
825 | case LLFloaterSnapshot::SNAPSHOT_FORMAT_JPEG: | 826 | case LLFloaterSnapshot::SNAPSHOT_FORMAT_JPEG: |
826 | previewp->mFormattedImage = new LLImageJPEG(previewp->mSnapshotQuality); | 827 | previewp->mFormattedImage = new LLImageJPEG(previewp->mSnapshotQuality); |
827 | break; | 828 | break; |
829 | case LLFloaterSnapshot::SNAPSHOT_FORMAT_TGA: | ||
830 | previewp->mFormattedImage = new LLImageTGA(); | ||
831 | break; | ||
828 | case LLFloaterSnapshot::SNAPSHOT_FORMAT_BMP: | 832 | case LLFloaterSnapshot::SNAPSHOT_FORMAT_BMP: |
829 | previewp->mFormattedImage = new LLImageBMP(); | 833 | previewp->mFormattedImage = new LLImageBMP(); |
830 | break; | 834 | break; |
@@ -1080,6 +1084,8 @@ LLFloaterSnapshot::ESnapshotFormat LLFloaterSnapshot::Impl::getFormatIndex(LLFlo | |||
1080 | index = SNAPSHOT_FORMAT_PNG; | 1084 | index = SNAPSHOT_FORMAT_PNG; |
1081 | else if (id == "JPEG") | 1085 | else if (id == "JPEG") |
1082 | index = SNAPSHOT_FORMAT_JPEG; | 1086 | index = SNAPSHOT_FORMAT_JPEG; |
1087 | else if (id == "TGA") | ||
1088 | index = SNAPSHOT_FORMAT_TGA; | ||
1083 | else if (id == "BMP") | 1089 | else if (id == "BMP") |
1084 | index = SNAPSHOT_FORMAT_BMP; | 1090 | index = SNAPSHOT_FORMAT_BMP; |
1085 | return index; | 1091 | return index; |
diff --git a/linden/indra/newview/llfloatersnapshot.h b/linden/indra/newview/llfloatersnapshot.h index c97923b..f894c27 100644 --- a/linden/indra/newview/llfloatersnapshot.h +++ b/linden/indra/newview/llfloatersnapshot.h | |||
@@ -46,6 +46,7 @@ public: | |||
46 | { | 46 | { |
47 | SNAPSHOT_FORMAT_PNG, | 47 | SNAPSHOT_FORMAT_PNG, |
48 | SNAPSHOT_FORMAT_JPEG, | 48 | SNAPSHOT_FORMAT_JPEG, |
49 | SNAPSHOT_FORMAT_TGA, | ||
49 | SNAPSHOT_FORMAT_BMP | 50 | SNAPSHOT_FORMAT_BMP |
50 | } ESnapshotFormat; | 51 | } ESnapshotFormat; |
51 | 52 | ||
diff --git a/linden/indra/newview/skins/default/xui/en-us/floater_snapshot.xml b/linden/indra/newview/skins/default/xui/en-us/floater_snapshot.xml index c2eb3c2..a9ac7fa 100644 --- a/linden/indra/newview/skins/default/xui/en-us/floater_snapshot.xml +++ b/linden/indra/newview/skins/default/xui/en-us/floater_snapshot.xml | |||
@@ -123,6 +123,9 @@ | |||
123 | <combo_item name="JPEG"> | 123 | <combo_item name="JPEG"> |
124 | JPEG | 124 | JPEG |
125 | </combo_item> | 125 | </combo_item> |
126 | <combo_item name="TGA"> | ||
127 | TGA | ||
128 | </combo_item> | ||
126 | <combo_item name="BMP"> | 129 | <combo_item name="BMP"> |
127 | BMP | 130 | BMP |
128 | </combo_item> | 131 | </combo_item> |