mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Fixed build on macOS.
This commit is contained in:
@@ -45,7 +45,6 @@ void PaintCornerBadgeTTLFrame(
|
||||
if (!ttl) {
|
||||
return;
|
||||
}
|
||||
using Radius = ImageRoundRadius;
|
||||
constexpr auto kBlurRadius = 24;
|
||||
PainterHighQualityEnabler hq(q);
|
||||
|
||||
|
@@ -248,8 +248,8 @@ void Location::validateImageCache(
|
||||
Expects(_media != nullptr);
|
||||
|
||||
const auto ratio = style::DevicePixelRatio();
|
||||
if (_imageCache.size() == (outer * ratio)
|
||||
&& _imageCacheRounding == rounding
|
||||
if ((_imageCache.size() == (outer * ratio)
|
||||
&& _imageCacheRounding == rounding)
|
||||
|| _media->isNull()) {
|
||||
return;
|
||||
}
|
||||
|
@@ -19,7 +19,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#include "ui/empty_userpic.h"
|
||||
#include "main/main_session.h"
|
||||
#include "mainwindow.h"
|
||||
#include "window/notification_utilities.h"
|
||||
#include "window/notifications_utilities.h"
|
||||
#include "styles/style_window.h"
|
||||
|
||||
#include <thread>
|
||||
|
@@ -28,6 +28,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#include "styles/style_dialogs.h"
|
||||
#include "ui/effects/animations.h"
|
||||
#include "ui/empty_userpic.h"
|
||||
#include "ui/userpic_view.h"
|
||||
#include "ui/painter.h"
|
||||
#include "window/window_controller.h"
|
||||
#include "window/window_session_controller.h"
|
||||
@@ -84,7 +85,6 @@ QImage ArchiveUserpic(not_null<Data::Folder*> folder) {
|
||||
auto result = PrepareImage();
|
||||
Painter paint(&result);
|
||||
|
||||
auto view = Ui::PeerUserpicView();
|
||||
folder->paintUserpic(paint, 0, 0, result.width());
|
||||
return result;
|
||||
}
|
||||
@@ -549,7 +549,7 @@ TimeId CalculateOnlineTill(not_null<PeerData*> peer) {
|
||||
) | rpl::start_with_next([=] {
|
||||
const auto all = ranges::all_of(_pins, [=](const auto &pin) {
|
||||
return (!pin->peer->hasUserpic())
|
||||
|| (pin->userpicView && pin->userpicView->image());
|
||||
|| (!Ui::PeerUserpicLoading(pin->userpicView));
|
||||
});
|
||||
if (all) {
|
||||
downloadLifetime->destroy();
|
||||
|
Reference in New Issue
Block a user