mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 22:25:12 +00:00
@@ -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(
|
||||||
|
Reference in New Issue
Block a user