diff --git a/indra/llimage/llimagej2c.cpp b/indra/llimage/llimagej2c.cpp index 23ef3d74e8..827ac022dc 100644 --- a/indra/llimage/llimagej2c.cpp +++ b/indra/llimage/llimagej2c.cpp @@ -302,15 +302,15 @@ S32 LLImageJ2C::calcDataSizeJ2C(S32 w, S32 h, S32 comp, S32 discard_level, F32 r // --- Use 7.1.11 basis with fixes implied by LL PRs --- (void)comp; // retained for parity with the viewer signature - const S32 hard_cap = 12; // sanity cap - const S64 base_layer_area = static_cast(MAX_BLOCK_SIZE) * static_cast(MAX_BLOCK_SIZE); // 64x64 blocks at discard 5 + constexpr S32 hard_cap = 12; // sanity cap + constexpr S64 base_layer_area = static_cast(MAX_BLOCK_SIZE) * static_cast(MAX_BLOCK_SIZE); // 64x64 blocks at discard 5 + constexpr S64 bits_per_tile = static_cast(max_components) * static_cast(precision); const S32 discard_layers = std::max(5 - discard_level, 0); const double rate64 = static_cast(rate); const S64 header_bytes = static_cast(calcHeaderSizeJ2C()); - const S64 bits_per_tile = static_cast(max_components) * static_cast(precision); // helper lambda: layer area to estimated bit budget - auto scaled_bits = [rate64, bits_per_tile](S64 layer_area) -> S64 + auto scaled_bits = [rate64](S64 layer_area) -> S64 { const S64 layer_bits = layer_area * bits_per_tile; return static_cast(std::llround(static_cast(layer_bits) * rate64)); diff --git a/indra/newview/skins/default/xui/zh/panel_preferences_UI.xml b/indra/newview/skins/default/xui/zh/panel_preferences_UI.xml index c9acda82d1..ac14238762 100644 --- a/indra/newview/skins/default/xui/zh/panel_preferences_UI.xml +++ b/indra/newview/skins/default/xui/zh/panel_preferences_UI.xml @@ -1,7 +1,6 @@ - 懸停提示: @@ -41,7 +40,6 @@ - 使用者界面大小: @@ -105,7 +103,6 @@ 秒 - 狀態列: @@ -140,13 +137,13 @@ - + 為以下內容使用單獨視窗: @@ -192,7 +189,6 @@ - 通知設定(彈出視窗,控制台,提示框): @@ -246,7 +242,6 @@ - 字型方案: