mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 07:33:52 +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 bsize = frame.size();
|
||||||
const auto copyw = std::min(
|
const auto copyw = std::min(
|
||||||
bsize.width(),
|
bsize.width(),
|
||||||
outer.width() * bsize.height() / outer.height());
|
std::max(outer.width() * bsize.height() / outer.height(), 1));
|
||||||
const auto copyh = std::min(
|
const auto copyh = std::min(
|
||||||
bsize.height(),
|
bsize.height(),
|
||||||
outer.height() * bsize.width() / outer.width());
|
std::max(outer.height() * bsize.width() / outer.width(), 1));
|
||||||
auto copy = (bsize == QSize(copyw, copyh))
|
auto copy = (bsize == QSize(copyw, copyh))
|
||||||
? std::move(frame)
|
? std::move(frame)
|
||||||
: frame.copy(
|
: frame.copy(
|
||||||
|
|
Loading…
Add table
Reference in a new issue