mirror of
https://github.com/telegramdesktop/tdesktop
synced 2024-12-13 18:04:49 +00:00
Fix video thumbnail in PiP raster renderer.
This commit is contained in:
parent
a27ef55ff8
commit
32c7964e8c
@ -167,16 +167,12 @@ QImage Pip::RendererSW::staticContentByRequest(
|
||||
}
|
||||
_preparedStaticKey = image.cacheKey();
|
||||
_preparedStaticRequest = request;
|
||||
//_preparedCoverStorage = Streaming::PrepareByRequest(
|
||||
// _instance.info().video.cover,
|
||||
// false,
|
||||
// _instance.info().video.rotation,
|
||||
// request,
|
||||
// std::move(_preparedCoverStorage));
|
||||
_preparedStaticContent = Images::Round(Images::Prepare(
|
||||
image,
|
||||
request.resize,
|
||||
{ .outer = request.outer }), request.rounding);
|
||||
_preparedStaticContent = Images::Round(
|
||||
Images::Prepare(
|
||||
image,
|
||||
request.resize,
|
||||
{ .outer = request.outer / style::DevicePixelRatio() }),
|
||||
request.rounding);
|
||||
|
||||
return _preparedStaticContent;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user