mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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) {
|
}(), [=](Ui::UserpicButton::ChosenImage chosen) {
|
||||||
using ChosenType = Ui::UserpicButton::ChosenType;
|
using ChosenType = Ui::UserpicButton::ChosenType;
|
||||||
auto result = Api::PeerPhoto::UserPhoto{
|
auto result = Api::PeerPhoto::UserPhoto{
|
||||||
base::take(chosen.image),
|
base::take<QImage>(chosen.image), // Strange MSVC bug with take.
|
||||||
chosen.markup.documentId,
|
chosen.markup.documentId,
|
||||||
chosen.markup.colors,
|
chosen.markup.colors,
|
||||||
};
|
};
|
||||||
|
|
|
@ -31,6 +31,8 @@ namespace UserpicBuilder {
|
||||||
return Images::Round(
|
return Images::Round(
|
||||||
std::move(i),
|
std::move(i),
|
||||||
Images::CornersMask(radius / style::DevicePixelRatio()));
|
Images::CornersMask(radius / style::DevicePixelRatio()));
|
||||||
|
} else {
|
||||||
|
return std::move(i);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
if (style::DevicePixelRatio() == 1) {
|
if (style::DevicePixelRatio() == 1) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue