From 0b6c9946b23dc76592eff15e3e0a3b0169882de0 Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Sun, 3 Nov 2024 11:04:15 +0100 Subject: [PATCH] Fix camera layout --- submodules/LegacyComponents/Sources/TGCameraController.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/submodules/LegacyComponents/Sources/TGCameraController.m b/submodules/LegacyComponents/Sources/TGCameraController.m index 249ea16b91..bd0fec83a4 100644 --- a/submodules/LegacyComponents/Sources/TGCameraController.m +++ b/submodules/LegacyComponents/Sources/TGCameraController.m @@ -2751,6 +2751,8 @@ static CGPoint TGCameraControllerClampPointToScreenSize(__unused id self, __unus return CGRectMake(0, 82, screenSize.width, screenSize.height - 82 - 83); else if (widescreenWidth == 896.0f) return CGRectMake(0, 77, screenSize.width, screenSize.height - 77 - 83); + else if (widescreenWidth == 874.0f) + return CGRectMake(0, 77, screenSize.width, screenSize.height - 77 - 83); else if (widescreenWidth == 812.0f) return CGRectMake(0, 77, screenSize.width, screenSize.height - 77 - 68); else @@ -2782,6 +2784,8 @@ static CGPoint TGCameraControllerClampPointToScreenSize(__unused id self, __unus return CGRectMake(0, 121, screenSize.width, screenSize.height - 121 - 234); else if (widescreenWidth == 896.0f) return CGRectMake(0, 121, screenSize.width, screenSize.height - 121 - 223); + else if (widescreenWidth == 874.0f) + return CGRectMake(0, 121, screenSize.width, screenSize.height - 135 - 202); else if (widescreenWidth == 852.0f) return CGRectMake(0, 136, screenSize.width, screenSize.height - 136 - 192); else if (widescreenWidth == 844.0f)