From 8dc151e14dfe751292a46b81e0ad543236141258 Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 4 Jun 2025 16:21:21 +0400 Subject: [PATCH] Fix build on Windows. --- Telegram/SourceFiles/settings/settings_main.cpp | 2 +- .../SourceFiles/ui/controls/round_video_recorder.cpp | 11 ----------- cmake | 2 +- 3 files changed, 2 insertions(+), 13 deletions(-) diff --git a/Telegram/SourceFiles/settings/settings_main.cpp b/Telegram/SourceFiles/settings/settings_main.cpp index 496e5e2933..1d65911e3f 100644 --- a/Telegram/SourceFiles/settings/settings_main.cpp +++ b/Telegram/SourceFiles/settings/settings_main.cpp @@ -547,7 +547,7 @@ void SetupValidatePasswordSuggestion( 0, 0, 0)); - const auto label = content->add( + content->add( object_ptr( content, tr::lng_settings_suggestion_password_about(), diff --git a/Telegram/SourceFiles/ui/controls/round_video_recorder.cpp b/Telegram/SourceFiles/ui/controls/round_video_recorder.cpp index dfd17f42f4..36a03c66ee 100644 --- a/Telegram/SourceFiles/ui/controls/round_video_recorder.cpp +++ b/Telegram/SourceFiles/ui/controls/round_video_recorder.cpp @@ -915,10 +915,6 @@ void RoundVideoRecorder::Private::drawLogoOnYUV420P( not_null frame) { const auto width = frame->width; const auto height = frame->height; - const auto centerX = width / 2; - const auto centerY = height / 2; - const auto radius = std::min(centerX, centerY); - const auto radiusSquared = radius * radius; const auto logoBottom = height - kLogoSize + kLogoYShift; const auto logoStartX = kLogoXShift; @@ -933,20 +929,13 @@ void RoundVideoRecorder::Private::drawLogoOnYUV420P( const auto ySkip = frame->linesize[0] - width; const auto uvWidth = width / 2; - const auto uvHeight = height / 2; auto uData = frame->data[1]; auto vData = frame->data[2]; const auto uvSkip = frame->linesize[1] - uvWidth; auto yMaskIndex = 0; for (auto y = 0; y < height; ++y) { - const auto dy = y - centerY; - const auto dySquared = dy * dy; - for (auto x = 0; x < width; ++x) { - const auto dx = x - centerX; - const auto distanceSquared = dx * dx + dySquared; - if (_circleMask[yMaskIndex]) { *yData = static_cast(*yData * kOverlayOpacity + 16 * kOverlayOpaque); diff --git a/cmake b/cmake index fd6f14f2de..dd3a6bcaaa 160000 --- a/cmake +++ b/cmake @@ -1 +1 @@ -Subproject commit fd6f14f2deb9cc67c144c529e3267b67f99ba624 +Subproject commit dd3a6bcaaa37f4d873bbdba840f858696a58735b