From 6a43f2e5086b1be058bd064fb2bdac2250636ccf Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Wed, 28 Aug 2024 09:01:15 +0300 Subject: [PATCH] Fixed display of round edges in box for giveaway creation. --- .../info/channel_statistics/boosts/create_giveaway_box.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/info/channel_statistics/boosts/create_giveaway_box.cpp b/Telegram/SourceFiles/info/channel_statistics/boosts/create_giveaway_box.cpp index 8172d1cfb..31694adea 100644 --- a/Telegram/SourceFiles/info/channel_statistics/boosts/create_giveaway_box.cpp +++ b/Telegram/SourceFiles/info/channel_statistics/boosts/create_giveaway_box.cpp @@ -119,8 +119,9 @@ void AddPremiumTopBarWithDefaultTitleBar( object_ptr(box)); closeTopBar->resize(box->width(), st::boxTitleHeight); closeTopBar->paintRequest( - ) | rpl::start_with_next([=](const QRect &r) { + ) | rpl::start_with_next([=] { auto p = Painter(closeTopBar); + const auto r = closeTopBar->rect(); const auto radius = st::boxRadius; const auto progress = state->animation.value(isCloseBarShown() ? 1. @@ -138,7 +139,6 @@ void AddPremiumTopBarWithDefaultTitleBar( resultRect.width() - hPadding, resultRect.height()); p.setClipPath(path); - PainterHighQualityEnabler hq(p); p.setPen(Qt::NoPen); p.setBrush(st::boxDividerBg); p.drawRoundedRect(resultRect, radius, radius);