mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 23:27:09 +02:00
Fix build with MSVC.
This commit is contained in:
parent
7a63246e6c
commit
edb011dc0d
2 changed files with 3 additions and 1 deletions
|
@ -444,7 +444,7 @@ void Cover::refreshUploadPhotoOverlay() {
|
|||
}(), [=](Ui::UserpicButton::ChosenImage chosen) {
|
||||
using ChosenType = Ui::UserpicButton::ChosenType;
|
||||
auto result = Api::PeerPhoto::UserPhoto{
|
||||
base::take(chosen.image),
|
||||
base::take<QImage>(chosen.image), // Strange MSVC bug with take.
|
||||
chosen.markup.documentId,
|
||||
chosen.markup.colors,
|
||||
};
|
||||
|
|
|
@ -31,6 +31,8 @@ namespace UserpicBuilder {
|
|||
return Images::Round(
|
||||
std::move(i),
|
||||
Images::CornersMask(radius / style::DevicePixelRatio()));
|
||||
} else {
|
||||
return std::move(i);
|
||||
}
|
||||
};
|
||||
if (style::DevicePixelRatio() == 1) {
|
||||
|
|
Loading…
Add table
Reference in a new issue