mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix the comment about surface size in media_view_pip
Surface size is buffer size, in fact...
This commit is contained in:
parent
7b5781b845
commit
4832e3b3ab
1 changed files with 2 additions and 1 deletions
|
@ -619,7 +619,8 @@ void PipPanel::handleWaylandResize(QSize size) {
|
||||||
? QSize(max, max * _ratio.height() / _ratio.width())
|
? QSize(max, max * _ratio.height() / _ratio.width())
|
||||||
: QSize(max * _ratio.width() / _ratio.height(), max);
|
: QSize(max * _ratio.width() / _ratio.height(), max);
|
||||||
|
|
||||||
// Buffer can't be bigger than surface size.
|
// Buffer can't be bigger than the configured
|
||||||
|
// (suggested by compositor) size.
|
||||||
const auto byWidth = (scaled.width() * size.height())
|
const auto byWidth = (scaled.width() * size.height())
|
||||||
> (scaled.height() * size.width());
|
> (scaled.height() * size.width());
|
||||||
const auto normalized = (byWidth && scaled.width() > size.width())
|
const auto normalized = (byWidth && scaled.width() > size.width())
|
||||||
|
|
Loading…
Add table
Reference in a new issue