mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Fix the comment about surface size in media_view_pip
Surface size is buffer size, in fact...
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user