summaryrefslogtreecommitdiff
path: root/indra/newview/llfloatersocial.cpp
diff options
context:
space:
mode:
authorCho <cho@lindenlab.com>2013-06-27 19:34:39 +0100
committerCho <cho@lindenlab.com>2013-06-27 19:34:39 +0100
commit26832818780ffe5052443db3c6bbfca15575a5b5 (patch)
tree05de8446bf07b64112c0e749357aacc71708bc73 /indra/newview/llfloatersocial.cpp
parent1adc987ed1a90af1fdb4e14bf1ce1674a69389b9 (diff)
changed FBC photo sharing to use JPEG instead of PNG for ACME-636
Diffstat (limited to 'indra/newview/llfloatersocial.cpp')
-rw-r--r--indra/newview/llfloatersocial.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/newview/llfloatersocial.cpp b/indra/newview/llfloatersocial.cpp
index 7ef8f9f9e3..e305bfd10a 100644
--- a/indra/newview/llfloatersocial.cpp
+++ b/indra/newview/llfloatersocial.cpp
@@ -137,7 +137,7 @@ BOOL LLSocialPhotoPanel::postBuild()
mSucceessLblPanel = getChild<LLUICtrl>("succeeded_panel");
mFailureLblPanel = getChild<LLUICtrl>("failed_panel");
mThumbnailPlaceholder = getChild<LLUICtrl>("thumbnail_placeholder");
-
+
LLRect full_screen_rect = getRootView()->getRect();
LLSnapshotLivePreview::Params p;
p.rect(full_screen_rect);
@@ -145,8 +145,10 @@ BOOL LLSocialPhotoPanel::postBuild()
mPreviewHandle = previewp->getHandle();
previewp->setSnapshotType(previewp->SNAPSHOT_WEB);
+ previewp->setSnapshotFormat(LLFloaterSnapshot::SNAPSHOT_FORMAT_JPEG);
+ //previewp->setSnapshotQuality(98);
previewp->setThumbnailPlaceholderRect(getThumbnailPlaceholderRect());
-
+
return LLPanel::postBuild();
}