From 838ad6616640d6668cc66e30f5a2eaad465a41d7 Mon Sep 17 00:00:00 2001
From: John Preston <johnprestonmail@gmail.com>
Date: Mon, 7 Oct 2024 12:45:25 +0400
Subject: [PATCH] Improve hidpi/window geometry init.

---
 Telegram/build/prepare/prepare.py | 2 +-
 Telegram/cmake/td_scheme.cmake    | 7 -------
 Telegram/lib_ui                   | 2 +-
 cmake                             | 2 +-
 4 files changed, 3 insertions(+), 10 deletions(-)

diff --git a/Telegram/build/prepare/prepare.py b/Telegram/build/prepare/prepare.py
index 813ccc418..f8ae5a6a2 100644
--- a/Telegram/build/prepare/prepare.py
+++ b/Telegram/build/prepare/prepare.py
@@ -457,7 +457,7 @@ if customRunCommand:
 stage('patches', """
     git clone https://github.com/desktop-app/patches.git
     cd patches
-    git checkout 7e156bfee8
+    git checkout 5943c8aca4
 """)
 
 stage('msys64', """
diff --git a/Telegram/cmake/td_scheme.cmake b/Telegram/cmake/td_scheme.cmake
index 10f2c57c4..cf241941b 100644
--- a/Telegram/cmake/td_scheme.cmake
+++ b/Telegram/cmake/td_scheme.cmake
@@ -34,13 +34,6 @@ PUBLIC
     desktop-app::lib_tl
 )
 
-if (WIN32 AND NOT build_win64 AND NOT build_winarm)
-    target_compile_options(td_scheme
-    PRIVATE
-        /bigobj # scheme.cpp has too many sections.
-    )
-endif()
-
 if (CMAKE_SYSTEM_PROCESSOR STREQUAL "mips64")
     # Sometimes final linking may fail with error "relocation truncated to fit"
     # due to large scheme size.
diff --git a/Telegram/lib_ui b/Telegram/lib_ui
index 579fe7df2..d145a7237 160000
--- a/Telegram/lib_ui
+++ b/Telegram/lib_ui
@@ -1 +1 @@
-Subproject commit 579fe7df27509ebfd14397375ad1e40876f873f8
+Subproject commit d145a7237985219ad8acb3cfb5f2999d68fcb593
diff --git a/cmake b/cmake
index cd40741ee..82ae419da 160000
--- a/cmake
+++ b/cmake
@@ -1 +1 @@
-Subproject commit cd40741ee7e089dc79e1d0a1d396aacf2155a8da
+Subproject commit 82ae419da99140aa5f0e3e4e4ae214d0e948efea