mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 22:54:01 +02:00
parent
d346925b9d
commit
5cba1cdc64
1 changed files with 2 additions and 2 deletions
|
@ -285,10 +285,10 @@ QImage PrepareBlurredBackground(QSize outer, QImage frame) {
|
|||
const auto bsize = frame.size();
|
||||
const auto copyw = std::min(
|
||||
bsize.width(),
|
||||
outer.width() * bsize.height() / outer.height());
|
||||
std::max(outer.width() * bsize.height() / outer.height(), 1));
|
||||
const auto copyh = std::min(
|
||||
bsize.height(),
|
||||
outer.height() * bsize.width() / outer.width());
|
||||
std::max(outer.height() * bsize.width() / outer.width(), 1));
|
||||
auto copy = (bsize == QSize(copyw, copyh))
|
||||
? std::move(frame)
|
||||
: frame.copy(
|
||||
|
|
Loading…
Add table
Reference in a new issue