diff options
author | Vadim ProductEngine <vsavchuk@productengine.com> | 2012-01-24 09:56:11 +0200 |
---|---|---|
committer | Vadim ProductEngine <vsavchuk@productengine.com> | 2012-01-24 09:56:11 +0200 |
commit | 0d04a4da7e7c1361e1ac805e2a135d826242fd2f (patch) | |
tree | c16907f231d38d5f1f4eff2cd5ae7eea37ed05c3 /indra/newview | |
parent | ff5fe4ffc06fa9220043d82a2d7d7dbc0b7ffd77 (diff) |
EXP-1801 FOLLOWUP Default to PNG when saving snapshot via hotkey.
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llviewermenufile.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/indra/newview/llviewermenufile.cpp b/indra/newview/llviewermenufile.cpp index 8ee514e7c2..f31f0364b3 100644 --- a/indra/newview/llviewermenufile.cpp +++ b/indra/newview/llviewermenufile.cpp @@ -528,20 +528,20 @@ class LLFileTakeSnapshotToDisk : public view_listener_t { gViewerWindow->playSnapshotAnimAndSound(); LLPointer<LLImageFormatted> formatted; - switch(LLFloaterSnapshot::ESnapshotFormat(gSavedSettings.getS32("SnapshotFormat"))) + LLFloaterSnapshot::ESnapshotFormat fmt = (LLFloaterSnapshot::ESnapshotFormat) gSavedSettings.getS32("SnapshotFormat"); + switch (fmt) { case LLFloaterSnapshot::SNAPSHOT_FORMAT_JPEG: formatted = new LLImageJPEG(gSavedSettings.getS32("SnapshotQuality")); break; + default: + llwarns << "Unknown local snapshot format: " << fmt << llendl; case LLFloaterSnapshot::SNAPSHOT_FORMAT_PNG: formatted = new LLImagePNG; break; case LLFloaterSnapshot::SNAPSHOT_FORMAT_BMP: formatted = new LLImageBMP; break; - default: - llwarns << "Unknown Local Snapshot format" << llendl; - return true; } formatted->enableOverSize() ; formatted->encode(raw, 0); |