aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewerwindow.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:37 -0500
committerJacek Antonelli2008-08-15 23:45:37 -0500
commit31ba05810c641f14e8ab5da8ad2aaf527779f6c1 (patch)
treec4b8d635dfb657fa4cfee7c285f8cadbf24afa90 /linden/indra/newview/llviewerwindow.cpp
parentSecond Life viewer sources 1.19.1.1 (diff)
downloadmeta-impy-31ba05810c641f14e8ab5da8ad2aaf527779f6c1.zip
meta-impy-31ba05810c641f14e8ab5da8ad2aaf527779f6c1.tar.gz
meta-impy-31ba05810c641f14e8ab5da8ad2aaf527779f6c1.tar.bz2
meta-impy-31ba05810c641f14e8ab5da8ad2aaf527779f6c1.tar.xz
Second Life viewer sources 1.19.1.2
Diffstat (limited to 'linden/indra/newview/llviewerwindow.cpp')
-rw-r--r--linden/indra/newview/llviewerwindow.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/linden/indra/newview/llviewerwindow.cpp b/linden/indra/newview/llviewerwindow.cpp
index eaaa4d2..0e5218c 100644
--- a/linden/indra/newview/llviewerwindow.cpp
+++ b/linden/indra/newview/llviewerwindow.cpp
@@ -2415,7 +2415,7 @@ BOOL LLViewerWindow::handleKey(KEY key, MASK mask)
2415 // HACK look for UI editing keys 2415 // HACK look for UI editing keys
2416 if (LLView::sEditingUI) 2416 if (LLView::sEditingUI)
2417 { 2417 {
2418 if (LLFloaterEditUI::handleKey(key, mask)) 2418 if (LLFloaterEditUI::handleKeyEditUI(key, mask))
2419 { 2419 {
2420 return TRUE; 2420 return TRUE;
2421 } 2421 }
@@ -3042,8 +3042,8 @@ BOOL LLViewerWindow::handlePerFrameHover()
3042 { 3042 {
3043 floater_rect.mBottom = bar_rect.mBottom+1; 3043 floater_rect.mBottom = bar_rect.mBottom+1;
3044 // Don't bounce the floaters up and down. 3044 // Don't bounce the floaters up and down.
3045 gFloaterView->reshape(floater_rect.getWidth(), floater_rect.getHeight(), 3045 gFloaterView->reshapeFloater(floater_rect.getWidth(), floater_rect.getHeight(),
3046 TRUE, ADJUST_VERTICAL_NO); 3046 TRUE, ADJUST_VERTICAL_NO);
3047 gFloaterView->setRect(floater_rect); 3047 gFloaterView->setRect(floater_rect);
3048 } 3048 }
3049 3049
@@ -4165,7 +4165,7 @@ BOOL LLViewerWindow::saveImageNumbered(LLImageRaw *raw, const LLString& extensio
4165 4165
4166 LLPointer<LLImageFormatted> formatted_image = LLImageFormatted::createFromExtension(extension); 4166 LLPointer<LLImageFormatted> formatted_image = LLImageFormatted::createFromExtension(extension);
4167 LLImageBase::setSizeOverride(TRUE); 4167 LLImageBase::setSizeOverride(TRUE);
4168 BOOL success = formatted_image->encode(raw); 4168 BOOL success = formatted_image->encode(raw, 0.0f);
4169 if( success ) 4169 if( success )
4170 { 4170 {
4171 success = formatted_image->save(filepath); 4171 success = formatted_image->save(filepath);
@@ -4323,7 +4323,7 @@ BOOL LLViewerWindow::saveSnapshot( const LLString& filepath, S32 image_width, S3
4323 if (success) 4323 if (success)
4324 { 4324 {
4325 LLPointer<LLImageBMP> bmp_image = new LLImageBMP; 4325 LLPointer<LLImageBMP> bmp_image = new LLImageBMP;
4326 success = bmp_image->encode(raw); 4326 success = bmp_image->encode(raw, 0.0f);
4327 if( success ) 4327 if( success )
4328 { 4328 {
4329 success = bmp_image->save(filepath); 4329 success = bmp_image->save(filepath);
@@ -4463,6 +4463,10 @@ BOOL LLViewerWindow::rawSnapshot(LLImageRaw *raw, S32 image_width, S32 image_hei
4463 image_buffer_y = llfloor(snapshot_height *scale_factor) ; 4463 image_buffer_y = llfloor(snapshot_height *scale_factor) ;
4464 } 4464 }
4465 raw->resize(image_buffer_x, image_buffer_y, type == SNAPSHOT_TYPE_DEPTH ? 4 : 3); 4465 raw->resize(image_buffer_x, image_buffer_y, type == SNAPSHOT_TYPE_DEPTH ? 4 : 3);
4466 if(!raw->getData())
4467 {
4468 return FALSE ;
4469 }
4466 4470
4467 BOOL high_res = scale_factor > 1.f; 4471 BOOL high_res = scale_factor > 1.f;
4468 if (high_res) 4472 if (high_res)