aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterimagepreview.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llfloaterimagepreview.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/linden/indra/newview/llfloaterimagepreview.cpp b/linden/indra/newview/llfloaterimagepreview.cpp
index 9827a31..c81081f 100644
--- a/linden/indra/newview/llfloaterimagepreview.cpp
+++ b/linden/indra/newview/llfloaterimagepreview.cpp
@@ -62,6 +62,10 @@
62 62
63#include "hippoGridManager.h" 63#include "hippoGridManager.h"
64 64
65#ifdef LL_DARWIN
66#include "llwindowmacosx-objc.h"
67#endif
68
65//static 69//static
66S32 LLFloaterImagePreview::sUploadAmount = 10; 70S32 LLFloaterImagePreview::sUploadAmount = 10;
67 71
@@ -353,7 +357,10 @@ bool LLFloaterImagePreview::loadImage(const std::string& src_filename)
353 } 357 }
354 358
355 LLPointer<LLImageRaw> raw_image = new LLImageRaw; 359 LLPointer<LLImageRaw> raw_image = new LLImageRaw;
356 360#ifdef LL_DARWIN
361 if (! decodeImageQuartz(src_filename, raw_image))
362 return false;
363#else
357 switch (codec) 364 switch (codec)
358 { 365 {
359 case IMG_CODEC_BMP: 366 case IMG_CODEC_BMP:
@@ -428,8 +435,9 @@ bool LLFloaterImagePreview::loadImage(const std::string& src_filename)
428 } 435 }
429 436
430 raw_image->biasedScaleToPowerOfTwo(1024); 437 raw_image->biasedScaleToPowerOfTwo(1024);
438#endif
439
431 mRawImagep = raw_image; 440 mRawImagep = raw_image;
432
433 return true; 441 return true;
434} 442}
435 443