diff --git a/indra/llimagej2coj/llimagej2coj.cpp b/indra/llimagej2coj/llimagej2coj.cpp index 23f67919f..afcd914f4 100644 --- a/indra/llimagej2coj/llimagej2coj.cpp +++ b/indra/llimagej2coj/llimagej2coj.cpp @@ -168,7 +168,7 @@ BOOL LLImageJ2COJ::decodeImpl(LLImageJ2C &base, LLImageRaw &raw_image, F32 decod // dereference the array. if(!image || !image->numcomps) { - llwarns << "ERROR -> decodeImpl: failed to decode image!" << llendl; + llwarns << "failed to decode image!" << llendl; if (image) { opj_image_destroy(image); @@ -183,6 +183,7 @@ BOOL LLImageJ2COJ::decodeImpl(LLImageJ2C &base, LLImageRaw &raw_image, F32 decod { if (image->comps[i].factor != base.getRawDiscardLevel()) { + llwarns << "Expected discard level not reached!" << llendl; // if we didn't get the discard level we're expecting, fail opj_image_destroy(image); base.decodeFailed(); diff --git a/indra/newview/llnotify.cpp b/indra/newview/llnotify.cpp index 20145004f..c942aee44 100644 --- a/indra/newview/llnotify.cpp +++ b/indra/newview/llnotify.cpp @@ -242,6 +242,30 @@ LLNotifyBox::LLNotifyBox(LLNotificationPtr notification, // it appears below the caution textbox y = y - caution_height; } + else if (mIsCaution && mIsTip) + { + + const S32 BTN_TOP = BOTTOM_PAD + (((mNumOptions-1+2)/3)) * (BTN_HEIGHT+VPAD); + + // Tokenization on \n is handled by LLTextBox + + const S32 MAX_LENGTH = 512 + 20 + DB_FIRST_NAME_BUF_SIZE + DB_LAST_NAME_BUF_SIZE + DB_INV_ITEM_NAME_BUF_SIZE; // For script dialogs: add space for title. + + text = new LLTextEditor(std::string("box"), LLRect(x, y, getRect().getWidth()-2, mIsTip ? BOTTOM : BTN_TOP+16), MAX_LENGTH, mMessage, sFont, FALSE); + text->setWordWrap(TRUE); + text->setTabStop(FALSE); + text->setMouseOpaque(FALSE); + text->setBorderVisible(FALSE); + text->setTakesNonScrollClicks(FALSE); + text->setHideScrollbarForShortDocs(TRUE); + text->setReadOnlyBgColor ( LLColor4::transparent ); // the background color of the box is manually + // rendered under the text box, therefore we want + // the actual text box to be transparent + text->setReadOnlyFgColor ( gColors.getColor("NotifyCautionWarnColor") ); //sets caution text color for tip notifications + text->setEnabled(FALSE); // makes it read-only + text->setTabStop(FALSE); // can't tab to it (may be a problem for scrolling via keyboard) + addChild(text); + } else { diff --git a/indra/newview/skins/Pony-Aquablue/colors_base.xml b/indra/newview/skins/Pony-Aquablue/colors_base.xml index 9f8689260..b48208f68 100644 --- a/indra/newview/skins/Pony-Aquablue/colors_base.xml +++ b/indra/newview/skins/Pony-Aquablue/colors_base.xml @@ -99,7 +99,7 @@ - + @@ -195,7 +195,7 @@ - + diff --git a/indra/newview/skins/Pony-Purple/colors_base.xml b/indra/newview/skins/Pony-Purple/colors_base.xml index b359f55db..8cde4c258 100644 --- a/indra/newview/skins/Pony-Purple/colors_base.xml +++ b/indra/newview/skins/Pony-Purple/colors_base.xml @@ -98,7 +98,7 @@ - + @@ -195,7 +195,7 @@ - + diff --git a/indra/newview/skins/dark/colors_base.xml b/indra/newview/skins/dark/colors_base.xml index 2d8802b0f..032351a88 100644 --- a/indra/newview/skins/dark/colors_base.xml +++ b/indra/newview/skins/dark/colors_base.xml @@ -96,7 +96,7 @@ - + diff --git a/indra/newview/skins/darkgred/colors_base.xml b/indra/newview/skins/darkgred/colors_base.xml index 7404c0598..d7132d44d 100644 --- a/indra/newview/skins/darkgred/colors_base.xml +++ b/indra/newview/skins/darkgred/colors_base.xml @@ -96,7 +96,7 @@ - + @@ -192,7 +192,7 @@ - + diff --git a/indra/newview/skins/default/colors_base.xml b/indra/newview/skins/default/colors_base.xml index d71dbe7aa..eafb95481 100644 --- a/indra/newview/skins/default/colors_base.xml +++ b/indra/newview/skins/default/colors_base.xml @@ -195,6 +195,7 @@ + diff --git a/indra/newview/skins/emerald/colors_base.xml b/indra/newview/skins/emerald/colors_base.xml index 18eea5cd3..57f34271a 100644 --- a/indra/newview/skins/emerald/colors_base.xml +++ b/indra/newview/skins/emerald/colors_base.xml @@ -194,7 +194,7 @@ - + diff --git a/indra/newview/skins/gemini/colors_base.xml b/indra/newview/skins/gemini/colors_base.xml index cab6c8270..4f5c5df9a 100644 --- a/indra/newview/skins/gemini/colors_base.xml +++ b/indra/newview/skins/gemini/colors_base.xml @@ -98,7 +98,7 @@ - + @@ -196,7 +196,7 @@ - + diff --git a/indra/newview/skins/gred/colors_base.xml b/indra/newview/skins/gred/colors_base.xml index 91f728ecf..6ecb33e97 100644 --- a/indra/newview/skins/gred/colors_base.xml +++ b/indra/newview/skins/gred/colors_base.xml @@ -96,7 +96,7 @@ - + @@ -193,7 +193,7 @@ - + diff --git a/indra/newview/skins/kdarknv/colors.xml b/indra/newview/skins/kdarknv/colors.xml index 4c129ebbc..2a87bd898 100644 --- a/indra/newview/skins/kdarknv/colors.xml +++ b/indra/newview/skins/kdarknv/colors.xml @@ -87,7 +87,7 @@ - + @@ -181,4 +181,4 @@ - + \ No newline at end of file diff --git a/indra/newview/skins/kdarknv/colors_base.xml b/indra/newview/skins/kdarknv/colors_base.xml index 3f7cac358..477527766 100644 --- a/indra/newview/skins/kdarknv/colors_base.xml +++ b/indra/newview/skins/kdarknv/colors_base.xml @@ -99,7 +99,7 @@ - + @@ -188,7 +188,7 @@ - + diff --git a/indra/newview/skins/kliteat/colors_base.xml b/indra/newview/skins/kliteat/colors_base.xml index 3f7cac358..477527766 100644 --- a/indra/newview/skins/kliteat/colors_base.xml +++ b/indra/newview/skins/kliteat/colors_base.xml @@ -99,7 +99,7 @@ - + @@ -188,7 +188,7 @@ - + diff --git a/indra/newview/skins/openlife/colors.xml b/indra/newview/skins/openlife/colors.xml index cdfd54701..2008d0804 100644 --- a/indra/newview/skins/openlife/colors.xml +++ b/indra/newview/skins/openlife/colors.xml @@ -96,7 +96,7 @@ - + @@ -182,7 +182,7 @@ - + diff --git a/indra/newview/skins/openlife/colors_base.xml b/indra/newview/skins/openlife/colors_base.xml index 94c67c241..39f897639 100644 --- a/indra/newview/skins/openlife/colors_base.xml +++ b/indra/newview/skins/openlife/colors_base.xml @@ -96,7 +96,7 @@ - + @@ -176,7 +176,7 @@ - + diff --git a/indra/newview/skins/pslgreen/colors_base.xml b/indra/newview/skins/pslgreen/colors_base.xml index 2494452fa..10647478b 100644 --- a/indra/newview/skins/pslgreen/colors_base.xml +++ b/indra/newview/skins/pslgreen/colors_base.xml @@ -96,7 +96,7 @@ - + diff --git a/indra/newview/skins/pslpurple/colors_base.xml b/indra/newview/skins/pslpurple/colors_base.xml index 2494452fa..10647478b 100644 --- a/indra/newview/skins/pslpurple/colors_base.xml +++ b/indra/newview/skins/pslpurple/colors_base.xml @@ -96,7 +96,7 @@ - + diff --git a/indra/newview/skins/ruby/colors_base.xml b/indra/newview/skins/ruby/colors_base.xml index 6ab840c02..f55f4c2e5 100644 --- a/indra/newview/skins/ruby/colors_base.xml +++ b/indra/newview/skins/ruby/colors_base.xml @@ -96,7 +96,7 @@ - + @@ -192,7 +192,7 @@ - + diff --git a/indra/newview/skins/sapphire/colors_base.xml b/indra/newview/skins/sapphire/colors_base.xml index 587f47bf5..0b5e343e1 100644 --- a/indra/newview/skins/sapphire/colors_base.xml +++ b/indra/newview/skins/sapphire/colors_base.xml @@ -96,7 +96,7 @@ - + diff --git a/indra/newview/skins/silver/colors_base.xml b/indra/newview/skins/silver/colors_base.xml index ada05d3ed..7ae59a490 100644 --- a/indra/newview/skins/silver/colors_base.xml +++ b/indra/newview/skins/silver/colors_base.xml @@ -98,7 +98,7 @@ - + @@ -199,7 +199,7 @@ - + diff --git a/indra/newview/skins/wisdom/colors_base.xml b/indra/newview/skins/wisdom/colors_base.xml index 5bdc1f360..cfb056c21 100644 --- a/indra/newview/skins/wisdom/colors_base.xml +++ b/indra/newview/skins/wisdom/colors_base.xml @@ -99,7 +99,7 @@ - + @@ -191,7 +191,7 @@ - +