diff options
| author | Fela <frayx@live.it> | 2024-10-10 11:54:36 +0400 |
|---|---|---|
| committer | Aliaksei Levin <22669599+levlam@users.noreply.github.com> | 2024-10-17 00:40:50 +0300 |
| commit | caea55d2412ec396962d0c8dfe1aaaeaf4fc8405 (patch) | |
| tree | e591f45830207164088d0c6348ed68502015fc77 /td/telegram/ThemeManager.cpp | |
| parent | bc71cbf8a61c3cf8c92c9f12515a1452b18e2239 (diff) | |
Swap components in theme parameters serialization
Diffstat (limited to 'td/telegram/ThemeManager.cpp')
| -rw-r--r-- | td/telegram/ThemeManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/td/telegram/ThemeManager.cpp b/td/telegram/ThemeManager.cpp index 8cf852f25..7a1da6502 100644 --- a/td/telegram/ThemeManager.cpp +++ b/td/telegram/ThemeManager.cpp @@ -559,7 +559,7 @@ string ThemeManager::get_theme_parameters_json_string(const td_api::object_ptr<t string res(7, '#'); const char *hex = "0123456789abcdef"; for (int i = 0; i < 3; i++) { - int32 num = (color >> (i * 8)) & 0xFF; + int32 num = (color >> ((2 - i) * 8)) & 0xFF; res[2 * i + 1] = hex[num >> 4]; res[2 * i + 2] = hex[num & 15]; } |
