Fix the comment about surface size in media_view_pip

Surface size is buffer size, in fact...
This commit is contained in:
Ilya Fedin 2022-10-30 02:56:52 +04:00 committed by John Preston
parent 7b5781b845
commit 4832e3b3ab

View file

@ -619,7 +619,8 @@ void PipPanel::handleWaylandResize(QSize size) {
? QSize(max, max * _ratio.height() / _ratio.width())
: 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())
> (scaled.height() * size.width());
const auto normalized = (byWidth && scaled.width() > size.width())