aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewerwindow.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:59 -0500
committerJacek Antonelli2008-08-15 23:45:59 -0500
commit6e91a9cc3d5a610198cf526a76e2ab642f10ecd7 (patch)
treeb023869f9daa7f61ea3ab27112d37524bdd88de4 /linden/indra/newview/llviewerwindow.cpp
parentSecond Life viewer sources 1.20.12 (diff)
downloadmeta-impy-6e91a9cc3d5a610198cf526a76e2ab642f10ecd7.zip
meta-impy-6e91a9cc3d5a610198cf526a76e2ab642f10ecd7.tar.gz
meta-impy-6e91a9cc3d5a610198cf526a76e2ab642f10ecd7.tar.bz2
meta-impy-6e91a9cc3d5a610198cf526a76e2ab642f10ecd7.tar.xz
Second Life viewer sources 1.20.13
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llviewerwindow.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/linden/indra/newview/llviewerwindow.cpp b/linden/indra/newview/llviewerwindow.cpp
index c2fd92c..8134a36 100644
--- a/linden/indra/newview/llviewerwindow.cpp
+++ b/linden/indra/newview/llviewerwindow.cpp
@@ -1856,6 +1856,10 @@ void LLViewerWindow::adjustRectanglesForFirstUse(const LLRect& window)
1856{ 1856{
1857 LLRect r; 1857 LLRect r;
1858 1858
1859 // *NOTE: The width and height of these floaters must be
1860 // identical in settings.xml and their relevant floater.xml
1861 // files, otherwise the window construction will get
1862 // confused. JC
1859 adjust_rect_bottom_center("FloaterMoveRect2", window); 1863 adjust_rect_bottom_center("FloaterMoveRect2", window);
1860 1864
1861 adjust_rect_top_center("FloaterCameraRect3", window); 1865 adjust_rect_top_center("FloaterCameraRect3", window);
@@ -1864,7 +1868,7 @@ void LLViewerWindow::adjustRectanglesForFirstUse(const LLRect& window)
1864 1868
1865 adjust_rect_top_left("FloaterLandRect5", window); 1869 adjust_rect_top_left("FloaterLandRect5", window);
1866 1870
1867 adjust_rect_top_left("FloaterHUDRect", window); 1871 adjust_rect_top_left("FloaterHUDRect2", window);
1868 1872
1869 adjust_rect_top_left("FloaterFindRect2", window); 1873 adjust_rect_top_left("FloaterFindRect2", window);
1870 1874
@@ -4612,14 +4616,15 @@ BOOL LLViewerWindow::rawSnapshot(LLImageRaw *raw, S32 image_width, S32 image_hei
4612 // Note: this formula depends on the number of components being 3. Not obvious, but it's correct. 4616 // Note: this formula depends on the number of components being 3. Not obvious, but it's correct.
4613 image_width += (image_width * (type == SNAPSHOT_TYPE_DEPTH ? 4 : 3)) % 4 ; 4617 image_width += (image_width * (type == SNAPSHOT_TYPE_DEPTH ? 4 : 3)) % 4 ;
4614 4618
4619 BOOL ret = TRUE ;
4615 // Resize image 4620 // Resize image
4616 if(llabs(image_width - image_buffer_x) > 4 || llabs(image_height - image_buffer_y) > 4) 4621 if(llabs(image_width - image_buffer_x) > 4 || llabs(image_height - image_buffer_y) > 4)
4617 { 4622 {
4618 raw->scale( image_width, image_height ); 4623 ret = raw->scale( image_width, image_height );
4619 } 4624 }
4620 else if(image_width != image_buffer_x || image_height != image_buffer_y) 4625 else if(image_width != image_buffer_x || image_height != image_buffer_y)
4621 { 4626 {
4622 raw->scale( image_width, image_height, FALSE ); 4627 ret = raw->scale( image_width, image_height, FALSE );
4623 } 4628 }
4624 4629
4625 4630
@@ -4640,7 +4645,7 @@ BOOL LLViewerWindow::rawSnapshot(LLImageRaw *raw, S32 image_width, S32 image_hei
4640 send_agent_resume(); 4645 send_agent_resume();
4641 } 4646 }
4642 4647
4643 return TRUE; 4648 return ret;
4644} 4649}
4645 4650
4646void LLViewerWindow::destroyWindow() 4651void LLViewerWindow::destroyWindow()