From c7a13e5c9f275214f424c0b1c0ceb7c99ae62bfb Mon Sep 17 00:00:00 2001 From: Andrey Lihatskiy Date: Wed, 19 Aug 2020 13:05:22 +0300 Subject: SL-11898 Restored the code lost on merge --- indra/newview/llviewermenufile.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'indra/newview') diff --git a/indra/newview/llviewermenufile.cpp b/indra/newview/llviewermenufile.cpp index de31ccc87e..142108f069 100644 --- a/indra/newview/llviewermenufile.cpp +++ b/indra/newview/llviewermenufile.cpp @@ -683,11 +683,17 @@ class LLFileTakeSnapshotToDisk : public view_listener_t S32 width = gViewerWindow->getWindowWidthRaw(); S32 height = gViewerWindow->getWindowHeightRaw(); + bool render_ui = gSavedSettings.getBOOL("RenderUIInSnapshot"); + bool render_hud = gSavedSettings.getBOOL("RenderHUDInSnapshot"); + BOOL high_res = gSavedSettings.getBOOL("HighResSnapshot"); if (high_res) { width *= 2; height *= 2; + // not compatible with UI/HUD + render_ui = false; + render_hud = false; } if (gViewerWindow->rawSnapshot(raw, @@ -695,9 +701,9 @@ class LLFileTakeSnapshotToDisk : public view_listener_t height, TRUE, FALSE, - gSavedSettings.getBOOL("RenderUIInSnapshot"), + render_ui, + render_hud, FALSE, - FALSE, LLSnapshotModel::SNAPSHOT_TYPE_COLOR, high_res ? S32_MAX : MAX_SNAPSHOT_IMAGE_SIZE)) //per side { -- cgit v1.2.3